Forums
Forums / Themes and Templates / Style Every Other Widget
(@bobinfrance)
14 years, 3 months ago
I’d like to have different classes for widgets on a dynamic sidebar so I can alter the css – e.g.
First widget gets ‘before_title’ => ‘<div class=”widget-title”><h3>’ then the second one gets ‘before_title’ => ‘<div class=”widget-title2″><h3>’
Does that make sense and if so can anyone point me in the right direction?
I’m guessing I need to pass a parameter with widgets_init but I’m struggling to work out exactly where this called.
Any and all guidance appreciated.
(@alchymyth)
possibly related:
http://ww.wp.xz.cn/support/topic/how-to-first-and-last-css-classes-for-sidebar-widgets?replies=9
Thanks that looks like a great start –
Thanks for taking the time to help
The topic ‘Style Every Other Widget’ is closed to new replies.