Hello folks. I have suddenly noticed a strange problem with a theme that I’m developing.
The background image for the theme is supposed to be positioned at the top of the page, but there is a gap of about 25 px from the top of page to where the background image starts. (Background color begins at the top.)
I’ve tried removing everything else from my theme code and stylesheet, and have come to the conclusion that there’s something off with wp_head. As soon as I remove the call for wp_head in header.php, the gap to the background image disappears.
Now, my theme is very simple and for a specific purpose, so I don’t think that I really need wp_head. But I would still like to know what is causing the problem, so I don’t go on making shaky themes.
Any input would be greatly appreciated.
- The topic ‘Unwanted margin resulting from wp_head’ is closed to new replies.