Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Move Admin Bar to bottom
- add_action('wp_head', 'stick_admin_bar_to_bottom_css');
- function stick_admin_bar_to_bottom_css() {
- echo "
- <style type='text/css'>
- html {
- padding-bottom: 28px !important;
- }
- body {
- margin-top: -28px;
- }
- #wpadminbar {
- top: auto !important;
- bottom: 0;
- }
- #wpadminbar .quicklinks .menupop ul {
- bottom: 28px;
- }
- </style>
- ";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement