Title: [Plugin: Disable Admin Bar] Plugin doesn&#039;t fully disable Admin Bar
Last modified: August 19, 2016

---

# [Plugin: Disable Admin Bar] Plugin doesn't fully disable Admin Bar

 *  [Brian Zoetewey](https://wordpress.org/support/users/omicron7/)
 * (@omicron7)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-disable-admin-bar-plugin-doesnt-fully-disable-admin-bar/)
 * I noticed that just removing the ‘wp_admin_bar_init’ action doesn’t fully disable
   the admin bar. In admin-header.php, the class ‘admin-bar’ still gets added to
   the the body tag which results in a 28px padding getting added to the top of 
   the body.
 * A more effective way to remove the admin bar would be:
    add_filter(‘show_admin_bar’,‘
   __return_false’);
 * Hope that helps.
 * [http://wordpress.org/extend/plugins/disable-admin-bar/](http://wordpress.org/extend/plugins/disable-admin-bar/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Bill Dennen](https://wordpress.org/support/users/xyzzy/)
 * (@xyzzy)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-disable-admin-bar-plugin-doesnt-fully-disable-admin-bar/#post-1797474)
 * thanks for posting this!
 *  [DJTwittr](https://wordpress.org/support/users/djtwittr/)
 * (@djtwittr)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-disable-admin-bar-plugin-doesnt-fully-disable-admin-bar/#post-1797549)
 * Thank you for this… this works again… the remove wp-admin-bar-init code within
   the functions.php worked until the latest nightly…. this was a great find thanks
   for this. Go figure, i searched and searched on how to get this…now I don’t want
   it lol.
 *  [soblonde](https://wordpress.org/support/users/soblonde/)
 * (@soblonde)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-disable-admin-bar-plugin-doesnt-fully-disable-admin-bar/#post-1797579)
 * I have found this combination works great in version 3.2.1 popped in functions.
   php. Since tweaking it I now have faster load timesi in both the front and back
   end of my blogs.
 *     ```
       // Disable the Admin Bar
       add_filter( 'show_admin_bar', '__return_false' );
       wp_deregister_script('admin-bar');
       wp_deregister_style('admin-bar');
       remove_action('wp_footer','wp_admin_bar_render',1000);
   
       // Remove the Admin Bar preference in user profile */
       add_action( 'admin_print_scripts-profile.php', 'hide_admin_bar_prefs' );
       function hide_admin_bar_prefs() { ?>
       <style type="text/css">
       	.show-admin-bar { display: none; }
       </style>
       <?php
       }
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: Disable Admin Bar] Plugin doesn't fully disable Admin Bar’ is
closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/disable-admin-bar_b1753b.svg)
 * [Disable Admin Bar](https://wordpress.org/plugins/disable-admin-bar/)
 * [Support Threads](https://wordpress.org/support/plugin/disable-admin-bar/)
 * [Active Topics](https://wordpress.org/support/plugin/disable-admin-bar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/disable-admin-bar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/disable-admin-bar/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [soblonde](https://wordpress.org/support/users/soblonde/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-disable-admin-bar-plugin-doesnt-fully-disable-admin-bar/#post-1797579)
 * Status: not resolved