Created
May 13, 2013 12:27
-
-
Save webgurus/5567958 to your computer and use it in GitHub Desktop.
Remove admin bar WordPress
This file contains 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_filter('show_admin_bar', '__return_false'); | |
/* Remove admin bar style - top padding - Front-end */ | |
function remove_admin_bar_style_frontend() { | |
echo '<style type="text/css" media="screen"> | |
html { margin-top: 0px !important; } | |
* html body { margin-top: 0px !important; } | |
</style>'; | |
} | |
add_filter('wp_head','remove_admin_bar_style_frontend', 99); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment