HTML adding margin at top (3 posts)

  1. Scott
    Posted 3 years ago #

    Just logged into a site I'm working on and noticed something new.

    `<!-- We need this for debugging -->
    <!-- Responsive -->
    <!-- Responsive Child Theme -->
    <style type="text/css" media="print">#wpadminbar { display:none; }</style>
    <style type="text/css" media="screen">
    html { margin-top: 28px !important; }
    * html body { margin-top: 28px !important; }

    Now I have 28 px of margin at the top of my site that I can't get rid of. I can't find the code anywhere to delete. Where is it and how do I kill it?

  2. WPyogi
    Forum Moderator
    Posted 3 years ago #

    You'll have to post a link to your site for help with CSS issues. Or ask on the theme's dedicated forum here:


  3. iNihan
    Posted 3 years ago #

    Use this
    function my_function_admin_bar(){ return false; }
    add_filter( 'show_admin_bar' , 'my_function_admin_bar');

    Code from :

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic