Created
March 21, 2015 13:46
-
-
Save onjee/11899ac922bae76dea3f to your computer and use it in GitHub Desktop.
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
function fb_move_admin_bar() { | |
echo ' | |
<style type="text/css"> | |
body { | |
margin-top: -28px; padding-bottom: 28px;} | |
body.admin-bar #wphead {padding-top: 0;} | |
body.admin-bar #footer {padding-bottom: 28px;} | |
#wpadminbar {top: auto !important;bottom: 0;} | |
#wpadminbar .quicklinks .menupop ul {bottom: 28px;} | |
</style>'; | |
} | |
// on backend area | |
add_action( 'admin_head', 'fb_move_admin_bar' ); | |
// on frontend area | |
add_action( 'wp_head', 'fb_move_admin_bar' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment