Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function custom_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>';
- }
- // // for show adminbar on backend area just uncomment it
- // if ( is_admin_bar_showing() )
- // {add_action( 'admin_head', 'custom_move_admin_bar' );}
- // on frontend area
- if ( is_admin_bar_showing() )
- {add_action( 'wp_head', 'custom_move_admin_bar' );}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement