• Hi,

    I have buddypress running on my website and i want to disable the “Dashboard” menu on the admin bar for all user roles. ( Gotta hide the back end.. )

    I tried a php code but it didnt work i guess, due to an invalid ID being used.

    If someone could help me with this, it will be greatly appreciated.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The “Dashboard” link in BP Admin Bar only shows up for logged in users who have a role higher than Suscriber – the default role of BP members unless you changed it.

    I find it quite handy but if you still want to remove it, create a file bp-custom.php if you don’t have one yet. then add this

    <?php 
    
    remove_action( 'bp_adminbar_menus', 'bp_adminbar_thisblog_menu',  6   );
    
    ?>

    then upload bp-custom.php to wp-content/plugins/ folder

    P.S. BuddyPress forums at http://buddypress.org/support/topics/

    Better still, add the line to your themes functions.php like so:

    // REMOVE ADMIN BAR ELEMENTS
    remove_action( ‘bp_adminbar_menus’, ‘bp_adminbar_thisblog_menu’, 6 ); // DASHBOARD

    I am using this and it works but now I get all these errors…

    Warning: Cannot modify header information – headers already sent by (output started at /home/tango/public_html/wp-content/themes/buddyboss/functions.php:955) in /home/tango/public_html/wp-login.php on line 349

    Warning: Cannot modify header information – headers already sent by (output started at /home/tango/public_html/wp-content/themes/buddyboss/functions.php:955) in /home/tango/public_html/wp-login.php on line 361

    I have tries putting it in all different spots in functions.php.

    @satori83 that’s a theme issue – contact theme authors of Buddyboss

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hide "Dashboard" in Buddypress Admin Bar’ is closed to new replies.