WordPress.org

Ready to get started?Download WordPress

Forums

Sidebars not working (3 posts)

  1. Tuppencetaylor
    Member
    Posted 4 years ago #

    Does anyone else get the error on page messages and the missing side bar 2 since wp 2.9.1? Not sure if its the theme or my browser.

    Thanks

    Craig

  2. kz
    Member
    Posted 4 years ago #

    functions.php

    if ( function_exists('register_sidebar') )
      register_sidebars(2, array(
        'before_widget' => '<li id="%1$s" class="widget %2$s">',
        'after_widget' => '</li>',
        'before_title' => '',
        'after_title' => '',
      ));

    For side bar #1:
    <?php get_sidebar(1); ?>

    For side bar #2:
    <?php get_sidebar(2); ?>

  3. king22
    Member
    Posted 4 years ago #

    Thanks Kz for the information. I needed it badly.

Topic Closed

This topic has been closed to new replies.

About this Topic