• How do I define sidebars? I’m a noob at this stuff, learning as I go. But the tutorials online aren’t making much sense to me. Can someone please break it down for me? Thank you!!!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter rye_ryu

    (@rye_ryu)

    I still havent resolved this yet…..

    In your theme’s functions.php put something like this:

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

    The ‘name’ can be anything. Then, find the spot in your theme files where you want the sidebar to appear– usually header.php or footer.php but it can be anywhere– and put something like the following:

    if (function_exists('dynamic_sidebar')) {
      if (!dynamic_sidebar('LeftSidebar'));
    }

    Notice that the ‘name’ in the first snippet matches the value in the dynamic_sidebar call in the second snippet. Also the ‘before_*’ and ‘after_*’ can be different depending on the peculiarities of the theme.

    Thread Starter rye_ryu

    (@rye_ryu)

    Ok, just plugged those in, still not working =/ Any other steps I could possibly be missing?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘No Sidebars Defined’ is closed to new replies.