I have added wp_head()
to head part because plugins require that but when I update any part of the blog in wp-admin
blog it automatically adds following new css
part inside head
<style type="text/css" media="screen">
html { margin-top: 28px !important; }
* html body { margin-top: 28px !important; }
</style>
When I delete path cookies it disappears. Why this happens and how to solve it?
It’s the admin bar. You can remove it if you wish. In your functions.php, place:
Actually that is being added for the
admin bar
, to remove thestyle
from the head you can paste this inside yourfunctions.php
but above line will also remove the
admin bar
from the front end when you are logged in.The best way I’ve found to remove that white space (it’s not caused by the admin bar) is to search out this css in style.css:
and switch the
2em
to0em
or some variation of the same. That will remove the white space.This is because of the admin bar, you have to add a call to wp_footer in footer section to fix this