Added sidebar but widgets don't show

I added a 2nd sidebar to the BuddyPress Fun theme files following the instructions here http://www.blogohblog.com/adding-extra-sidebar-to-your-wordpress-theme/ and here http://codex.wordpress.org/Function_Reference/get_sidebar

Both sidebars show in both the live site and in the widget control panel. Problem is - I've added widgets to each sidebar via dashboard, but the live site still shows two empty, widget-free sidebars with the text:

Please log in and add widgets to this sidebar. Add Widgets

What could I be doing wrong?

Issue can be viewed at fitnessturtles.com

    fitnessturtles

    Functions.php, sidebar section. I added center-sidebar and modified blog-sidebar to be called right-sidebar:
    ////////////////////////////////////////////////////////////////////////////////
    /// Register the widget columns
    ////////////////////////////////////////////////////////////////////////////////

    if ( function_exists('register_sidebar') ) {

    register_sidebar(
    array(
    'name' => __('left-column'),
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget' => '</div>',
    'before_title' => '<h2 class="widgettitle">',
    'after_title' => '</h2>'
    )
    );

    register_sidebar(
    array(
    'name' => __('center-column'),
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget' => '</div>',
    'before_title' => '<h2 class="widgettitle">',
    'after_title' => '</h2>'
    )
    );

    register_sidebar(
    array(
    'name' => __('right-column'),
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget' => '</div>',
    'before_title' => '<h2 class="widgettitle">',
    'after_title' => '</h2>'
    )
    );

    register_sidebar(
    array(
    'name' => __('right-sidebar'),
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget' => '</div>',
    'before_title' => '<h2 class="widgettitle">',
    'after_title' => '</h2>'
    )
    );

    register_sidebar(
    array(
    'name' => __('center-sidebar'),
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget' => '</div>',
    'before_title' => '<h2 class="widgettitle">',
    'after_title' => '</h2>'
    )
    );

    register_sidebar(
    array(
    'name' => __('member-left'),
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget' => '</div>',
    'before_title' => '<h2 class="widgettitle">',
    'after_title' => '</h2>'
    )
    );

    register_sidebar(
    array(
    'name' => __('member-right'),
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget' => '</div>',
    'before_title' => '<h2 class="widgettitle">',
    'after_title' => '</h2>'
    )
    );

    }

    And the new sidebar-center.php:
    <div id="sidebar-center" class="bpside">

    <?php if ( !function_exists('dynamic_sidebar')
    || !dynamic_sidebar('blog-sidebar') ) : ?>

    <div id="text" class="widget widget_text">
    <h2 class="widgettitle"><?php _e('Sidebar Widget'); ?></h2>
    <div class="textwidget">
    <?php _e( 'Please log in and add widgets to this sidebar.', 'buddypress' ) ?>
     /wp-admin/widgets.php?s=&show=&sidebar=sidebar-4"><?php _e( 'Add Widgets', 'buddypress' ) ?>
    </div>
    </div>

    <?php endif; ?>

    </div>

    And the newly named sidebar-right.php (formerly sidebar.php):
    <div id="sidebar-column" class="bpside">

    <?php if ( !function_exists('dynamic_sidebar')
    || !dynamic_sidebar('blog-sidebar') ) : ?>

    <div id="text" class="widget widget_text">
    <h2 class="widgettitle"><?php _e('Sidebar Widget'); ?></h2>
    <div class="textwidget">
    <?php _e( 'Please log in and add widgets to this sidebar.', 'buddypress' ) ?>
     /wp-admin/widgets.php?s=&show=&sidebar=sidebar-4"><?php _e( 'Add Widgets', 'buddypress' ) ?>
    </div>
    </div>

    <?php endif; ?>

    </div>

    Thank you!

    Tammie

    @fitnessturtles: If your sidebar is named blog-sidebar then you need to register that in functions.php I can't see a mention of it in there. Adding a sidebar is a 3 part process: 1. Link up the file in your theme page where you want to show it, 2. Create the sidebar and 3. Register it in functions.php. You would want something like the following in your functions.php:


    register_sidebar(
    array(
    'name' => __('blog-sidebar'),
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget' => '</div>',
    'before_title' => '<h2 class="widgettitle">',
    'after_title' => '</h2>'
    )
    );

    You may also want to change the following in your sidebar call to reflect the name if it's blog-sidebar:

    <?php _e( 'Please log in and add widgets to this sidebar.', 'buddypress' ) ?>
    /wp-admin/widgets.php?s=&show=&sidebar=blog-sidebar"><?php _e( 'Add Widgets', 'buddypress' ) ?>
    </div>

    This does assume you are meaning to name it blog-sidebar if so then adding that to functions.php will hopefully sort it for you.

    fitnessturtles

    @tlister:

    The sidebar was originally named blog-sidebar in the original theme files. I copied the file and renamed it for 2 different instances - sidebar-right and sidebar-center. Then registered both following all 3 steps above (you can see in my pasted functions.php code) and edited my tags in the template files to call both new sidebars:

    <?php get_sidebar('center'); ?>
    <?php get_sidebar('right'); ?>

    instead of just the one <?php get_sidebar( ); ?>, which is how it was in the original theme files.

    The old blog-sidebar is now gone from my widget panel within the dashboard. Sidebar-right and sidebar-center show up, and I am able to add widgets to them. The problem is that the widgets don't show on the live site - The live site still shows two widget-empty sidebars.

    I am doing something wrong where the sidebars are added correctly and registered correctly, but not conveying on the live site.

    Tammie

    @fitnessturtles: You have to have the name in functions.php and in the sidebar widget call to be the same for it to register have you go that as I don't see it from what you pasted here. If you could paste both parts of that I can take a look to see where your issue is the key is I'm not seeing the name in functions.php and your sidebar to be the same hence suggesting that.

    Say you were calling it bob-sidebar you would have:

    register_sidebar(
    array(
    'name' => __(bob-sidebar'),
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget' => '</div>',
    'before_title' => '<h2 class="widgettitle">',
    'after_title' => '</h2>'
    )
    );

    and also in the sidebar file:
    <?php if ( !function_exists('dynamic_sidebar')
    || !dynamic_sidebar('bob-sidebar') ) : ?>
    <div id="text" class="widget widget_text">
    <h2 class="widgettitle"><?php _e('Sidebar Widget'); ?></h2>
    <div class="textwidget">
    <?php _e( 'Please log in and add widgets to this sidebar.', 'buddypress' ) ?>
    /wp-admin/widgets.php?s=&show=&sidebar=bob-sidebar"><?php _e( 'Add Widgets', 'buddypress' ) ?>
    </div>
    </div>
    <?php endif; ?>