Admin bar on bottom

<?php
function admin_bar_on_bottom() { ?>
<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>
<?php }
add_action( 'wp_head', 'admin_bar_on_bottom' );
add_action( 'admin_head', 'admin_bar_on_bottom' );
?>

0 Comments

You must be logged in to post a comment.