WordPress.org

Support

Support » Plugins and Hacks » Stick Admin Bar To Bottom » [Plugin: Stick Admin Bar To Bottom] Fix black-space at top of screen

[Plugin: Stick Admin Bar To Bottom] Fix black-space at top of screen

  • In wordpress 3.3.2 this plugin leaves a black bar at the top of the screen, and also shifts absolutely positioned elements with the css, by setting the margin-top of body.admin-bar to -28px.

    I fixed this by:

    1. Changing lines 5-8 in plugins/stick-admin-bar-to-bottom/css/wordpress-3-3.css as follows:

    body.admin-bar {
    	/*margin-top: -28px;*/
    	padding-bottom: 28px;
    }

    2. adding the following code to functions.php:

    function remove__admin_bar_bump_cb(){
    remove_action('wp_head', '_admin_bar_bump_cb');
    }
    add_action('admin_bar_init', 'remove__admin_bar_bump_cb');

    http://wordpress.org/extend/plugins/stick-admin-bar-to-bottom/

  • The topic ‘[Plugin: Stick Admin Bar To Bottom] Fix black-space at top of screen’ is closed to new replies.
Skip to toolbar