• guided

    (@guided)


    The following line is appearing between <head></head> on my site http://seeingchina2020.com:

    <style type="text/css">
    	html { margin-top: 28px !important; }
    	* html body { margin-top: 28px !important; }
    </style>

    I have no idea where it is coming from. It’s not in my stylesheet or my header. It’s not, as far I can tell, in my database, and I have reinstalled WordPress, so it’s not somewhere in wp-includes. Any ideas?

    I think it’s been put there by an ancient favicon plugin I installed too quickly. I’m being driven to distraction trying to get rid of it!

Viewing 5 replies - 1 through 5 (of 5 total)
  • toastedonions

    (@toastedonions)

    I’m fairly certain that this is what gives room for WordPress’ new admin toolbar that shows up at the top of your site only when you’re logged in. If so, you can’t remove it and it isn’t hurting anything =)

    Hopefully someone else can verify that, though…

    Thread Starter guided

    (@guided)

    I logged out and voila, gone. I was using an Under Construction plugin, to prevent anybody but users from viewing the site, which ís why I didn’t ever see it without the 28px margin.

    How do you activate the toolbar? And can you disable it?

    Thanks for the help!

    toastedonions

    (@toastedonions)

    Ah yes, some plugins sort of break the admin bar. Looks like the Disable Admin Bar plugin will get rid of it altogether if you’d like. Otherwise, my guess is that when you disable the Under Construction plugin, you’ll see the admin bar; otherwise, it may be a different plugin that is making it disappear. No worries, you aren’t missing much 😉

    Honestly, the admin bar sometimes gets in my way and I usually have the dashboard open in one tab and the site open in another tab to edit and view simultaneously. So the admin bar is worthless xD

    Thread Starter guided

    (@guided)

    I’ve disabled it. Problem solved. I’m not sure was was breaking it, but I don’t really care. I also have two tabs open, so it isn’t useful, and it would look like an eroor to logged in clients.

    Thanks again.

    hellveen

    (@hellveen)

    You can shut down this option in your profile page (http://example.com/wp-admin/profile.php)
    un-check the option “show admin bar -> when viewing site”

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Mystery CSS in header’ is closed to new replies.