Widgets – Adding An Additional CSS Class
-
Is there any way to add an additonal CSS class to the widget markup?
I’ve registered a new sidebar via the following snippet and I’d like to insert an additional CSS class: “widget-x” (x being the order/position of the widget within the sidebar). Any suggestions?
register_sidebar(array(
‘id’ => ‘footer’,
‘name’ => __(‘Footer’),
‘description’ => __(‘Widgets in this area will be shown witin the footer.’),
‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<h2>’,
‘after_title’ => ‘</h2>’
));
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Widgets – Adding An Additional CSS Class’ is closed to new replies.