From WordPress 3.1 introduced the concept of the toolbar, when the user logged in the foreground and backstage at the top of the page will display a black toolbar, through the toolbar can quickly create new articles, pages, media, users, as well as view articles and comments and other functions, the following figure:
Some WordPress users don't like the toolbar and choose to remove it. This toolbar is still a little useful, you now have a choice, do not like it at the top of the display, then we can move this toolbar to the bottom of the page, just add the following PHP code in the current theme of the functions.php:
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;
}
#wpadminba. Quicklinks. Menupop ul {
bottom:28px;
}
</style> ';
}
Background toolbar
add_action (' Admin_head ', ' Fb_move_admin_bar ');
Front tool bar
add_action (' Wp_head ', ' Fb_move_admin_bar ');
For Chrome users, a small problem with the toolbar moving to the bottom is that when the page is not loaded, the bottom of the chrome will display state information, which will block the WordPress toolbar.