Different styles for sidebar widgets
-
Perhaps I haven’t got my head around the flexibility of Sidebar Widgets but I’m struggling to understand how to style different widgets.
In my side bar I have a search box, feeds from three sites, a drop-down archive, random images and so on. I’d like each one to look different but they are all controlled by my style.css ‘sidebar’ attributes and they are all displayed by
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?>
. Because of this I can’t make my search bar sit in a blue box, make my first feed display five bulleted headlines and my second feed show a non-list of headlines simply divided by a pipe (|) or comma.Should I be hard-coding each element individually and scrapping Sidebar Widgets? If so as an example could someone show me how I hard code a feed displaying only the latest three headlines in a non list way? EG:
Headline one | Here is headline two | And here is headline three
Thanks to anyone who can help me battle this hurdle.
- The topic ‘Different styles for sidebar widgets’ is closed to new replies.