[Plugin: Disable Admin Bar] Plugin doesn't 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.
Viewing 3 replies - 1 through 3 (of 3 total)
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.