Last active
May 29, 2019 19:21
-
-
Save kjantzer/e3f3524b22511f882497 to your computer and use it in GitHub Desktop.
Globally remove default WordPress Admin Header. Courtesy of David Walsh (http://davidwalsh.name/remove-wordpress-admin-bar-css)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('get_header', 'remove_admin_login_header'); | |
function remove_admin_login_header() { | |
remove_action('wp_head', '_admin_bar_bump_cb'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Or you could put this in
functions.php
:This takes care of getting rid of the CSS as well.