Looking for remote work in tech?
Download our app Apple App Store Google Play Store
Looking for remote work in tech? Download our mobile app now! Apple App Store Google Play Store

WordPress 3.1 Feature Causing a headache?


 

March 8, 2011 | By: Adrian

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.