Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Homepage Left and Right widget bars throughout site


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.

Skip to toolbar