Help with adding a sidebar
-
I’m using the Dusk Till Dawn theme which is a 2 column theme with one on the right. I have added the following and it works in that I can ad widgets to it but after a day I can’t figure out what css call it is grabbing and how to change it. Here is what I have added so far,
I created a file called sidebar2.php and inserted this code
<!-- begin sidebar2 -->
<div id="sidebar2">-
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) : else : ?>
<?php endif; ?>
</div>
<!-- end sidebar2 -->
In functions.php in inserted this code
register_sidebar(2,array(
'id' => 'widgets',
'name' => ( 'Widgetbar' ),
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '',
'before_title' => '<h2>',
'after_title' => '</h2>',
));
Then in the index.php after the first sidebar call <?php get_sidebar(); ?> I inserted
<?php include("sidebar2.php"); ?>
How do I set up css with this please.
- The topic ‘Help with adding a sidebar’ is closed to new replies.