-
Hi, I suddenly noticed there’s a space above the header that wasn’t there before. I’ve attached a screenshot so you can see it.
-
Alvind
Hi there,
Could you provide the site URL so I can take a closer look and inspect the issue?
-
-
Alvind
The empty space is being caused by this element:
https://cln.sh/6yhBBTtshYJJRLMgvSNM
Are you using a tool called Metricool, or something similar? It looks like that tool is injecting an invisible element into the page, which is creating the extra space.
-
Yes, I have a Metricool pixel code in “elements” (wp-head). But I’ve had that code for months and the space wasn’t appearing.
-
Alvind
Do you still need it? If so, you can add it back, and I’ll take a look to see if we can hide it with some CSS.
-
I temporarily “saved” the Metricool code to the trash. Sure enough, the space has now disappeared. Question: If I place the hook somewhere else instead of in “wp-head”, will that solve the problem?
-
Question: If I place the hook somewhere else instead of in “wp-head”, will that solve the problem?
I don’t think so. It will always create a space anywhere you put it.
But we might be able to hide it with CSS. Can you add it back so we can take another look?
-
Okay, I’ve added it again.
-
Try this CSS:
body > img { display: none; } -
Okay, fixed. Thank you very much.
-
You are welcome 🙂
- You must be logged in to reply to this topic.