Search code examples
csswordpressmargin

Unexplainable margin @ top of page


I have a strange margin at the top of the page on this site. Strange thing is that it does not always appear but most of the times it does. So I guess it is not an actual margin or padding but can it be caused by something else?

https://www.nederweert24.nl/ontdek-nederweert/

It appears like this:

enter image description here

But it should be like this:

enter image description here

PS: it is not caused bij the Wordpress adminbar, cause when logged out the problem persists.


Solution

  • It's actually not the wp admin bar. I went on page and just explored. When i clicked the logo i saw the problem you stated and inspected it to see whats causing it. I started looking in whats above the header and started deleting some stuff until i stumbled upon something that fixed the "margin".

    enter image description here

    Just click on the pic and you'll see it. I deleted this image I marked red. Then the header jumped back to normal. There is a lot above your header that i think is unnecessary and thereby taking up that space randomly. I hope you can find out where that image comes from because I cant really go into your wordpress :p