Move the admin bar to the bottom

Adding this snippet to the functions.php of your wordpress theme will move the admin bar to the bottom of the browser window. I’m not sure about you but this helps me hate the admin bar just a little bit less.

 

 

function 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>';
}
add_action( 'wp_head', 'move_admin_bar' );

Be Sociable, Share!

Leave a comment