Home » Digital Systems » Swap your Buddypress admin bar to WP admin bar

Swap your Buddypress admin bar to WP admin bar

Swap your Buddypress admin bar to WP admin bar 536 304 Jesandy Krisano
Swap your Buddypress admin bar to WP admin bar

Through FTP and open the file: wp-config.php
Add this code anywhere before the line: /* That’s all, stop editing! Happy blogging. */

define( ‘BP_USE_WP_ADMIN_BAR’, true );

After that go to theme folder (/wp-content/themes/yourtheme) and open: functions.php
Or since suffusion - buddypress used child theme, you have to create functions.php new file on your child theme folder (e.g: son-suffusion - /wp-content/themes/son-suffusion)

After you found functions.php file, open and insert this code:

<?php
function remove_bp_adminbar(){
     remove_action( 'wp_footer', 'bp_core_admin_bar', 8 );
     remove_action( 'admin_footer', 'bp_core_admin_bar');
     show_admin_bar(true);
}
add_action('after_setup_theme','remove_bp_adminbar');
?>

Many tips i found only modify the wp-config.php file, well it’s not working on my site, so i found this additional tips; edit the funtions.php, and it does swap the bp admin to wp admin bar, hope it will works on you too..

Jesandy

Marketing strategist with 25+ years of experience across SEO and digital presence, connecting brand strategy with business activities while focusing on structure, practical limitations, and long-term results

All stories by: Jesandy