r.c.almeida
Veteran
Just Getting Started
Member Likes (0)
We need to hide the top admin bar even for logged users.
We are using wordpress/buddypress and Social Theme.
I already choose not to show the admin bar for users not registered/logged, but we want to hide it even for logged users.
Thank you very much,
Rodrigo

Responses (14)
Support Chimp (joined March 2010) Likes (0)
Hey Rodrigo, welcome to WPMU Dev! :-)
You can grab a copy of the following plugin I released a short while ago:
http://auroral.co.uk/2011/04/04/remove-the-wordpress-default-admin-bar/
That will remove your WP admin bar.
I presume it was the WP admin bar and not the BuddyPress one?
Take care.
Member (joined December 2011) Likes (0)
Hello Timothy,
Thank's for your fast feedback !
I have already installed the plugin, but the top admin bar is still there...
I am talking about that gray top admin bar with all wordpress and buddypress stuff... it is that one in this link: http://premium.wpmudev.org/the-buddypress-manual/about-the-buddypress-admin-bar/
I'd like to hide all that gray bar...
Thank you my friend...
Waiting some help,
Rodrigo
Support Chimp (joined March 2010) Likes (0)
Ah, well that one is not the WP Admin bar. Its the BuddyPress admin bar
Ok... Create a new file and name it bp-custom.php then enter this into it:
define('BP_DISABLE_ADMIN_BAR', true);Upload it to:
/wp-content/plugins/
So the path would be:
/wp-content/plugins/bp-custom.php
This will disable your BuddyPress admin bar. :-)
Take care.
Member (joined December 2011) Likes (0)
Cool !!!!!!!!!!!
Thank you very much, know it works !
Hey Timothy, nice work you are doing here. Tks !
Support Chimp (joined March 2010) Likes (0)
:-)
Thanks for the kind comments!
Member (joined November 2011) Likes (0)
Thanks a bunch for this tip. I created the bp-custom.php, and it works great for all the subsites, but the Blogs.MU theme shows an empty white bar where the grey one used to be. Is it possible to remove the gray bar only for subsites while allowing it to remain on the main buddypress site?
Thanks
Member (joined August 2011) Likes (0)
Greetings! The white bar is created by a bit of CSS in your theme that adds 25px padding to the top of your site. Open your 'Social" theme > go to folder _Inc > go to folder css > and open adminbar.css. At the very top of the css, you'll see this:
Just change the padding to 0px, and this white area will vanish.
Member (joined November 2011) Likes (0)
Thanks a ton for your quick and helpful response! I'm also wondering about the possibility of removing the buddypress bar from subsites while allowing it to remain on the main site. Does anyone know how this can be accomplished?
Inactive (joined February 2012) Likes (0)
Hey bhusema,
This is possible by using a child theme for the BuddyPress theme you are using for the sub-sites.
If you are using the default theme, create a child theme and include the following in the css:
Activate the parent theme on the main site and the child theme on the sub sites.
Here is how you can make one: http://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/
Hope that helps, let me know if you get stuck.
Support Kangaroo (joined March 2011) Likes (0)
Greetings bhusema,
Just checking if this issue was eventually resolved in another thread? Or by yourself separately to us? Or by us over email with you? Or using our live support?
If so, no need to reply, that's great news.
If not, or you have any more questions related to this thread, please feel free to post them below including any new symptoms or errors and tick the 'Mark as Not Resolved (re-open)' box below the post area (or else we'll miss it!)
Otherwise, happy days, glad you got it sorted :)
Thank you for being a WPMU Dev member!
Cheers, Joe
Member (joined October 2007) Likes (0)
does this still work with the current BP version? It doesn't seem to work for me no matter if I am logged in or not the bar is still there.
talking about this code:
define('BP_DISABLE_ADMIN_BAR', true);Support Chimp (joined March 2010) Likes (0)
Are you now using the WP admin bar?
The original BP bar still has the define here:
/buddypress/bp-core/bp-core-buddybar.php
Take care.
Member (joined October 2007) Likes (0)
@Timothy: slightly confused. I've activated BP on a new site, never worked with BP before. Not sure if ti is the BP or WP bar but I want it gone.
Any advice?
Support Chimp (joined March 2010) Likes (0)
When BuddyPress launched 1.6 they gave the option to move to the WP Admin bar.
So in that instance the old define wouldn't work.
Does the bar look similar to the on here at WPMU DEV?
If so then it's the WP Admin bar. If so then something like this would help:
http://wordpress.org/extend/plugins/global-admin-bar-hide-or-remove/
Take care.
Become a member