Some WordPress users do not like this toolbar and choose to remove it. This toolbar is a bit useful. Now you have another option. If you do not like it to be displayed on the top, you can move this toolbar to the bottom of the page, just in the functions of the current topic. add the following php code to php:
The code is as follows: |
Copy code |
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> '; } Www.111cn.net // Background toolbar Add_action ('admin _ head', 'FB _ move_admin_bar '); // Front-end toolbar Add_action ('WP _ head', 'FB _ move_admin_bar '); |
For Chrome users, there is a small problem in moving the toolbar to the bottom, that is, when the page is not loaded, the Chrome bottom will display the status information, which will block the WordPress toolbar.