kaioe
10/17/2015 - 3:02 AM

wordpress:stick_admin_bar_to_bottom_css

wordpress:stick_admin_bar_to_bottom_css

function stick_admin_bar_to_bottom_css() {
        echo "
        <style type='text/css'>
        html {
                padding-bottom: 32px !important;
        }

        body {
                margin-top: -32px;
        }

        #wpadminbar {
                top: auto !important;
                bottom: 0;
        }

        #wpadminbar .quicklinks .menupop ul {
                bottom: 32px;
        }
        </style>
        ";
}

add_action('admin_head', 'stick_admin_bar_to_bottom_css');
add_action('wp_head', 'stick_admin_bar_to_bottom_css');