great tip but where exactly in the file should I drop in the code:
add_filter( ‘show_admin_bar’, ‘__return_false’ );
I’m no coding type of fella!!
Lucca Reply:April 25th, 2011 at 8:28 pm
Anywhere after the first <?php tag.
Ashley Reply:August 23rd, 2011 at 8:42 am
Copy and paste this into a blank.php document and save it in you plugins folder, if you do it this way it will work with all your themes not just one
Ashley Reply:August 23rd, 2011 at 8:43 am
Plugin name: Remove admin bar
It didn’t copy so remember to add the php tags at the top and bottom
Josh Reply:January 18th, 2012 at 5:51 pm
Works too if you just put it in your theme functions.php
That is much better. Just one thing though, I still have a narrow gray bar at the top of the page. Anyone know how to get rid of it?
UKFreeListings Reply:May 24th, 2011 at 2:58 am
Woops, gray bar was mine – fixed it.
Thanks for this, I didn’t want that admin bar on the front page so I added this code to the front-page.php template. Worked like a charm!
Thanks this is helpful to me
Go To “Users” and uncheck the box next to “Show Admin Bar”
There are a few plugins available to do this for you, BUT they will not be as efficient as putting the code directly into your header.php which is the most efficient placement as it only loads for front end pages, or in to your functions.php file which is the given standard. However, you can use Plugins like: Admin Bar Disabler, Custom Admin Bar or Admin Bar Removal for this.
If there some plugin for Buddypress to dissable such admin bar and leave Buddybar working?
Please any opinions…
Notify me of follow-up comments via e-mail