CSS on sidebar
-
Hello,
I want to change the css of one sidebar. To edit the css of one sidebar I will need the id, which is why I looked it up in the functions.php file.
register_sidebar(array(
‘name’ => ‘SlidingBar Widget 4’,
‘id’ => ‘slidingbar-widget-4’,
‘before_widget’ => ‘<div id=”%1$s” class=”slidingbar-widget-col %2$s”>’,
‘after_widget’ => ‘<div style=”clear:both;”></div></div>’,
‘before_title’ => ‘<h3>’,
‘after_title’ => ‘</h3>’,
));Since I can′t use the id ′slidingbar-widget-4 (Tried that, didn’t work), is it possible to change the before_widget id to: ‘before_widget’ => ‘<div id=”slidingbar-widget-4″ (because that seemed to work) without losing it after updates? So if I change the id and update my theme, will the id stay the same or will it change back to what it was?
Thanks! I Really appreciate the help!
- The topic ‘CSS on sidebar’ is closed to new replies.