Read the Latest Articles:
How to remove the buddypress toolbar

One of the things when you create a social network for a company with buddypress is, you may not want to see that buddypress on top of each pages you are going to display.

In fact, I created one recently and one of the request was to make sure that the BuddyPress toolbar would not be displayed. You have in fact two options.

Solution one, editing Buddypress yourself.

This is an easy solution but not a perene one as each time you will update the buddypress plugin in your WordPress-Mu install, you’ll have to do it again…

If you still want to do that, you just have to remove this line whithin the bp-core-adminbar.php file in the bp-core folder.

add_action( 'wp_footer', 'bp_core_admin_bar', 8 );

Advantage, of this solution is you won’t have to update your theme to achieve that, the drawback is you’ll have to do it each time you update buddypress

Solution two, use the power of wordpress actions

If you don’t want to handle the change at each BuddyPress upgrade, you can just remove this action within your functions.php file. This file is located in each of your theme folders.

I say each because you may want this bar to be displayed truly nowhere. This means you your wp-theme and bp-theme.

To achieve that, just add this line in all your functions.php files :

remove_action('wp_footer', 'bp_core_admin_bar',8);

Screenshots

Before

Before removing the toolbar

After removing the toolbar

After removing the toolbar

Questions ?

Any questions about buddypress or integration of WordPress-mu, Buddypress and BBPress ? Do not hesitate to ask in the comments below.



  1. It‘s quite in here! Why not leave a response?