Archived topic
How to remove white space below the site header.
7 replies · Started by Immi on November 4, 2019
I’m facing a blank/white space issue just below the site header after placing Google Adsense verification code. I have placed Google AdSense code in appearance>Theme editor> header.php between the <head> and </head> tags.
I have attached screenshots of this issue for a clear understanding.
https://www.screencast.com/t/oQybHvM3CLk
https://www.screencast.com/t/wMS2aYWI5
Hi there,
i am not seeing the space on the front end of your site.
You should never edit the Parent Theme files directly only on a Child Theme, aside of possible breakages the changes will be lost when the Theme is updated. Instead use the GP Hook Element:
https://docs.generatepress.com/article/hooks-element-overview/
The WP_head hook can be selected to add code into the header.
Thank you for your support. I have removed the code from Theme editor and placed the code on GP Hook Element as you suggested above. But I still seeing a white space just below the header.
What do you see if you log out and view the site in a Private/Incognito browser?
I'm seeing White Space Between Header and Content which is looking weird. I have also attached a screenshot of this issue for a clear understanding.
**
I don't see a blank space there either.
Tried with browser incognito mode without Adblock.
Have you tried clearing your browser cache?
Thanks Leo
No problem :)