WordPress 3.1 Feature Causing a headache?
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:
- Insert wp_footer() in your footer.php file
- 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.