Created
March 15, 2015 16:06
-
-
Save besimhu/096d3280c95a46a69792 to your computer and use it in GitHub Desktop.
Sometimes if you have a site with a lot of fixed elements, the admin bar sure can be a pain. This removes the margin that gets added.
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
// Remove Admin Bar Margin | |
add_action('get_header', 'my_filter_head'); | |
function my_filter_head() { | |
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