get_sidebar
-
Hello,
I am having trouble getting my sidebars working properly..
My templates says<?php get_sidebar('left'); ?> .. <?php get_sidebar('right'); ?>
and that loads sidebar-left.php and sidebar-right.php that I have defined.
My functions.php hasif ( function_exists('register_sidebar') ) register_sidebar(array( 'name' => 'left', 'before_widget' => '<li>', 'after_widget' => '</li>', 'before_title' => '<h4>', 'after_title' => '</h4>', )); register_sidebar(array( 'name' => 'right', 'before_widget' => '<li>', 'after_widget' => '</li>', 'before_title' => '<h4>', 'after_title' => '</h4>', ));
And I see these sidebars named ‘left and ‘right’ show up in widgets menu. I tried adding widgets to the sidebars, but they don’t show up on my sidebars.. where is the problem?
thanks,
Slava
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘get_sidebar’ is closed to new replies.