• Resolved jloft

    (@jloft)


    MP6.php contains the following action:

    add_action( 'wp_head', 'mp6_override_toolbar_margin', 11 );
    function mp6_override_toolbar_margin() { ?>
    <style type="text/css" media="screen">
    	html { margin-top: 32px !important; }
    	* html body { margin-top: 32px !important; }
    </style>
    <?php
    }

    That action is adding inline styling for admin bar to the <head> even when viewing the WordPress site without logging in. Thus, a blank gap of 32 px appears at the top of the site. The function needs some sort of conditional.

    https://www.ads-software.com/extend/plugins/mp6/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘override WP's default toolbar top margin’ is closed to new replies.