Web Design Miami, TECKpert

Click here to get in touch with a Web Expert today.

Blog

WordPress 3.1 Feature Causing a headache?

By Adrian, March 8, 2011 no responses

After updating to WordPress 3.1, we found the html body of our sites being pushed down a bit. We found this following code injected into the

 html { margin-top: 28px !important; }	* html body { margin-top: 28px !important; }

The reason this is happening is WordPress is making space for the new admin panel that displays when admins view the live site. There are two fixes for this:

  1. Insert wp_footer() in your footer.php file
  2. Or you can open your user profile (Users > Your Profile) and uncheck the ‘Show on Front’ option to make it disappear.

Hope this helps someone.

Leave a Reply