Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How do I unregister a sidebar?


4727579
Inactive

In your bp-sn-parent theme folder look in functions.php and delete the code in there. Then, in home.php delete the appropriate code. You can re-name them in functions.php as well. Here is one I’ve added as an example (it’s also the code you need to delete from functions.php):

register_sidebars( 1,

array(

'name' => 'groups-page',

'before_widget' => '<div id="%1$s" class="widget %2$s">',

'after_widget' => '</div>',

'before_title' => '<h2 class="widgettitleevents">',

'after_title' => '</h2>'

)

);

This is the code you need to remove from home.php:

<div id="third-section" class="widget-section">

<?php if ( !function_exists('dynamic_sidebar')

|| !dynamic_sidebar('third-section') ) : ?>

<div class="widget-error">

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

</div>

<?php endif; ?>

This should answer your question. ;-)

Skip to toolbar