The WordPress Admin Bar may be useful but has the potential to disrupt the frontend display of your site while logged in if you are using a background image. To disable the WordPress Admin Bar which is a new feature in WordPress 3.1, place this code in your theme functions.php file.
This code snippet does 2 things:
- Disables the Admin Bar
- Removes the Admin Bar user options from the edit user profile page
/**
* Remove WordPress 3.1 Admin Bar and User Options
*
* @author Jen Baumann
* @link http://dreamwhisperdesigns.com/?p=439
*/
if ( function_exists( 'show_admin_bar' ) ) {
remove_action( 'personal_options', '_admin_bar_preferences' );
add_filter( 'show_admin_bar', '__return_false' );
}
Update: The final release of WordPress 3.1 provided user profile options for the adminbar and fixed potential site layout issues.
Read my Genesis tutorials at StudioPress.










