adding second sidebar
-
Hi there,
I’d like to add second sidebar to my theme. I did few actions but the sidebar doesn’t show up any where!
It shows up in the admin area in “widgets” but not in the site.
I did few actions to create it:1) I created another file “leftbar.php”
<div id="leftbar"> <div id="leftbar-in"> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?> <!-- list Archives --> <h2><?php _e('Archives'); ?></h2> <ul> <?php wp_get_archives('type=monthly'); ?> </ul> <?php endif; ?> </div><!-- end #leftbar-in --> </div><!-- end #leftbar -->
2) Modified sidebar.php just in this line:
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : ?>
3) changed functions.php
<?php if (function_exists('register_sidebars')) register_sidebars(2, array('before_widget' => '','after_widget' => '')); ?>
4) Changed CSS
That is it, but it doesn’t show up
Did I miss anything?
Thanks,
VadimP.S this is my blog:
https://compare-forex.com/blog/
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘adding second sidebar’ is closed to new replies.