Forums

[resolved] 2 widgetized sidebars issue (4 posts)

  1. doodlebee
    Member
    Posted 4 years ago #

    Would anyone know what's wrong with this?

    if ( function_exists('register_sidebar') ) {
      register_sidebar(array(
                  'name'=>'Left Sidebar',
                  'before_widget' => '',
                  'after_widget' => '',
                  'before_title' => '<h3>',
                  'after_title' => '</h3>',
        ));
      register_sidebar(array('name'=>'Right Sidebar',
                  'before_widget' => '',
                  'after_widget' => '',
                  'before_title' => '<h3>',
                  'after_title' => '</h3>',
        ));
      }

    My right sidebar will have the <h3> tags appear just fine. But the left sidebar, they won't appear at all. Anyone know why that is?

  2. Otto
    Tech Ninja
    Posted 4 years ago #

    There's nothing wrong with that code. I use very similar code. Should work just fine.

  3. doodlebee
    Member
    Posted 4 years ago #

    I must be having a bizarre week. It's totally not working for me. Everything in the left sidebar that *should* have an <h3> heading does not - the <h3> just doesn't appear at all. Does on the right side, no problem. Hmm...off to do more testing to see what's up. I'll post back if I figure it out...

  4. doodlebee
    Member
    Posted 4 years ago #

    Yep! You're right Otto - thanks for that. I had replaced a standard widget with one of my own - that's what was breaking it. I took it out, and all was hunky-dory.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.