WordPress.org

Support

Support » Themes and Templates » HTML adding margin at top

HTML adding margin at top

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

    `<!– We need this for debugging –>
    <!– Responsive 1.9.3.2 –>
    <!– Responsive Child Theme 1.9.3.1 –>
    <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; }
    </style>

    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • WPyogi

    @wpyogi

    Forum Moderator

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

    Responsive

    Use this
    <?php
    function my_function_admin_bar(){ return false; }
    add_filter( ‘show_admin_bar’ , ‘my_function_admin_bar’);
    ?>

    Code from :

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘HTML adding margin at top’ is closed to new replies.