New answers tagged

0

Defining new sidebar with in your functions.php <?php if ( function_exists('register_sidebar') ) { register_sidebar(array( 'before_widget' => '<li id="%1$s" class="widget %2$s">', 'after_widget' => '</li>', 'before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>' )); }?> Once ...


0

You can differentiate between sidebars inside sidebar.php. I don't know what your purpose is, but let's suppose you want different sidebars on single posts/pages and other pages. In your functions.php you would register two sidebars with id's singular and default in the usual way with register_sidebar. Then in sidebar.php you would include something like ...



Top 50 recent answers are included