Ok, let me try to clarify the above – sorry, I was in a rush.
The code above was added to the Executable PHP widget. The code pulls links from my “managed links” area in WP that are in the “advertisers” category.
So, essentially it’s calling to display my blogroll and the rest of the php code instructs it to only display on the homepage.
That works great, but it doesn’t match the rest of my widgets in my theme. How can I get the list of links to match my widgets css?
Thanks – and if you want to see what i’m talking about, check out http://www.mmhabits.com. It’s the two lines at the bottom of the “Links” widget on the left had side. Ideally I’d like them to be listed items above it.
. . . or, if someone knows a better way to make a widget only appear on the homepage, that would also help. I could simply add my Links widget if there were a way to only display on the front page.
A better way is to use Conditional Tags, for example
if (is_front_page()) { # do something
The Docs can make your life easier!
If you want to merge those two items with the list above, you’ll need to just use some CSS to:
– change the bottom margin of the widget above to 0.
– change the heading of the lower widget to display: none
Add this to your style.css file, at the end.
#recommended-links {
margin-bottom: 0px;
}
#better-blogroll h2.widgettitle {
display: none;
}
(Firebug on Firefox is invaluable!)
By the way, you seem to be forcing browsers to keep you out of their caches. What happens, though, at least on Firefox, is that the page flickers when it loads. Every time. Ugly! You may want to change your settings, whatever they are.