WordPress.org

Ready to get started?Download WordPress

Forums

Hide "Dashboard" in Buddypress Admin Bar (5 posts)

  1. squallypie
    Member
    Posted 3 years ago #

    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!

  2. @mercime
    Volunteer Moderator
    Posted 3 years ago #

    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/

  3. Lee Rickler
    Member
    Posted 3 years ago #

    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

  4. @satori83
    Member
    Posted 2 years ago #

    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.

  5. @mercime
    Volunteer Moderator
    Posted 2 years ago #

    @satori83 that's a theme issue - contact theme authors of Buddyboss

Topic Closed

This topic has been closed to new replies.

About this Topic