How to move the toolbar in WordPress to the bottom
This article mainly introduces how to move the toolbar in WordPress to the bottom, the article is very detailed, has a certain reference value, interested friends must read it!
The concept of toolbar has been introduced since WordPress 3.1.When users log in, a black toolbar is displayed at the top of the foreground and background pages. Through the toolbar, you can quickly create new articles, pages, media, users, and view articles and comments, as shown below:
Some WordPress users don't like the toolbar and choose to remove it. Now that you have another choice and don't like it at the top, we can move the toolbar to the bottom of the page by adding the following php code to the functions.php of the current topic:
Function fb_move_admin_bar () {echo '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;}' } / / background toolbar add_action ('admin_head',' fb_move_admin_bar'); / / foreground toolbar add_action ('wp_head',' fb_move_admin_bar')
For Chrome users, a small problem with moving the toolbar to the bottom is that when the page is not yet loaded, the status message will be displayed at the bottom of the Chrome, which will obscure the WordPress toolbar.
The above is all the contents of the article "how to move the toolbar in WordPress to the bottom". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!