Adsense – header messed up and ads not showing
-
Aloha! Do you have any idea what might have happened to my header here? Ever since I added Google Adsense, it seems to have messed with the spacing on the header for the home page.. I haven’t been able to see any of the ads anywhere as well. Any feedback would be helpful.. Thank you!!
Alex
The blog I need help with is: (visible only to logged in users)
-
Hello Alex,
“I haven’t been able to see any of the ads anywhere as well.”
– It looks there is a JavaScript error on your site which might cause this problem: https://snipboard.io/3pZygM.jpgSince the issue comes from the ads script, try to check your ads settings.
“Do you have any idea what might have happened to my header here?”
– There is an ad added to the branding section which increases the height of the header section. Adding any elements to the header section will increase its height.Hope this helps. Please let me know if you have any additional questions.
Kind regards,
Taras -
Aloha Taras!! Thank you so much for your help.. it confirms that it did come from Adsense.. I’m not too sure how to fix the Javascript error since I’m not too much of a coder.. any idea?
For the ad, I’m not wanting any ads to appear in the header section. Any idea of how to move it? I can do some research too.
Thank you for all your help!!
-
Alex,
I am not sure what can cause the issue because I’ve not worked with Google Adsense for a very long time but you can try a special plugin for Google Adsense developed by Google: https://support.google.com/adsense/answer/7527509?hl=en
It’s possible that it has a more user-friendly options to display ads on your site.
Here is a documentation for the plugin: https://sitekit.withgoogle.com/documentation/
If you’ll any question regarding the plugin, feel free to contact the Google team: https://wordpress.org/support/plugin/google-site-kit/
Also, I’ve found the following post which talks about the same JS issue as you have on your site: https://stackoverflow.com/questions/55396805/google-adsense-throwing-error-only-one-enable-page-level-ads-allowed-per-page
—
“For the ad, I’m not wanting any ads to appear in the header section. Any idea of how to move it?”
– The theme itself does not display any ads. So, it looks like it was set in your script to display an ad in the branding section. I can provide you a custom CSS to force to hide this ad in this section but I would recommend to check the plugin first.Here a custom CSS to hide the ad in the braining section:
.site-branding .google-auto-placed { display: none; }
Please let me know if you have any additional questions.
Kind regards,
Taras
- The topic ‘Adsense – header messed up and ads not showing’ is closed to new replies.