[Resolved] How to remove white space below the site header.

Home Forums Support [Resolved] How to remove white space below the site header.

Home Forums Support How to remove white space below the site header.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1052754
    Immi

    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

    #1052787
    David
    Staff
    Customer Support

    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.

    #1052999
    Immi

    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.

    #1053050
    David
    Staff
    Customer Support

    What do you see if you log out and view the site in a Private/Incognito browser?

    #1053462
    Immi

    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.
    **

    #1053468
    Leo
    Staff
    Customer Support

    I don’t see a blank space there either.

    Tried with browser incognito mode without Adblock.

    Have you tried clearing your browser cache?

    #1053690
    Immi

    Thanks Leo

    #1053993
    Leo
    Staff
    Customer Support

    No problem 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.