Site ads are not correctly showing white boxes are appearing
Website: itexamanswers.co.uk
Hi,
The ads problem is related to those errors -> https://i.imgur.com/gsUZu0u.png
Do you use auto ads? -> https://i.imgur.com/0yDSvS2.png if yes, then the code for auto ads should be set only once per page and it should be set in the head of file between head tags -> https://i.imgur.com/Y4ewWB4.png
Setting the code in multiple places on the page will display errors like those you see.
Thank you!
Can you please check now?
I did what you said in last comment, but it still show errors in Inspect element.
Now the ads are display correctly and there is no errors in console -> https://i.imgur.com/vTCEZuN.png
If you do not like the auto ad from the header, then what you can do is to change the header to a different style -> https://i.imgur.com/LOHOSFO.png because the theme do not have any control over the auto ads -> https://support.google.com/adsense/answer/9261805?hl=en
Thanks
But how to utilize ads option in theme panel? for auto ads?
As the suggested one is the place of google analytics code area.
The ads options from the theme panel are for standard ads (that type of ads that is displayed in the place you set them), not for auto ads.
Normally themes do not have control over auto ads, those are set randomly on website in the place where the ads will fit better.
The suggestion to set theme in the google analytics code area was because usually it is recommended to set the auto ads code between the head tags