Skip to:
Content
Pages
Categories
Search
Top
Bottom

Homepage Left and Right widget bars throughout site

  • Avatar of roscosys
    roscosys
    Participant

    @roscosys

    Hi i’d like to be able to show the same left and right widget bars throughout my site, upon members pages / Groups / Blogs etc

    Can this be done?

    Thanks

    Rosco

Viewing 1 replies (of 1 total)
  • Avatar of Mariusooms
    Mariusooms
    Participant

    @mariusooms

    This is the code for the right bar:

    <div id="right-column">
    <?php if ( !function_exists('dynamic_sidebar')
    || !dynamic_sidebar('right-column') ) : ?>

    <div class="widget-error">
    <?php _e( 'Please log in and add widgets to this column.', 'buddypress' ) ?> <a href="<?php echo get_option('siteurl') ?>/wp-admin/widgets.php?s=&show=&sidebar=sidebar-3"><?php _e( 'Add Widgets', 'buddypress' ) ?></a>
    </div>

    <?php endif; ?>
    </div>

    This is the code for the left bar:

    <div id="left-column">
    <?php if ( !function_exists('dynamic_sidebar')
    || !dynamic_sidebar('left-column') ) : ?>

    <div class="widget-error">
    <?php _e( 'Please log in and add widgets to this column.', 'buddypress' ) ?> <a href="<?php echo get_option('siteurl') ?>/wp-admin/widgets.php?s=&show=&sidebar=sidebar-1"><?php _e( 'Add Widgets', 'buddypress' ) ?></a>
    </div>

    <?php endif; ?>
    </div>

    This code is taking from the bphome theme…I believe it should work in your member theme, but haven’t tested it.

    Also check out the bp-dev widget plugin which adds new widget areas for your member theme:

    http://bp-dev.org/download/

    You only need the bp-dev core and bp-dev widget from that list though. I hope that helps get you in the right direction.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.