/
/
How to remove the BuddyPress Admin Bar

Do you want to completely remove the BuddyPress admin bar from your site? It’s actually pretty easy.

To remove the admin bar, open up your favorite FTP program and go to your bp-custom.php file in your site’s theme. If you don’t have one, create a file called bp-custom.php. Then add the following line to the file:

define( ‘BP_DISABLE_ADMIN_BAR’, true );

Most themes leave space at the top for the admin bar, so this will present an issue. You will need to open the stylesheet for your theme and add the following:


/* AdminBar Removed – fixing gap */
body { padding-top:0px!important; }
11 Responses
  1. Thanks so much for this gap fix. However, I’m still having an issue with a gap in Chrome (FF and Safari are fine); my theme is a child of BuddyBase. Any idea why Chrome won’t align correctly? (It responds to padding and margin changes but seems to be calibrated to think 0 is the gap length.)

    Any help much appreciated. Thanks again for your work!

  2. Thank you so much for creating this tutorial. It’s the only one I’ve found that has the important bit about how to remove the white space!

  3. Hi, for me this didn’t work . 🙁

    But I found a fix, might work for some.. go into /wp-content/plugins/buddypress/bp-core/css/buddybar.css and on line 1 change 25px to 0px.

    That should help those that still cant fix it. 🙂

  4. are there any updates on that? I am using BuddyPress for my website, but I do not want people to be able to see the BP admin bar…

  5. I had a problem with Chrome as well. I put the following css in my style.css file (so I didn’t change the BP core files). I also put it in my responsive stylesheet for all sizes. That fixed the white space.
    body, body.wp-admin{
    padding-top:0px !important;
    }

  6. what if i hav to remove the adim bar for logged out users only ; though i hav tried from buddypress setting for logged out user but is not working for me

Leave a Comment

Your email address will not be published. Required fields are marked *