Archived topic
Google AdSense problem in sidebar
6 replies · Started by Lars on October 4, 2022
Dear GP-Crew,
I have integrated Google AdSense via html code both in sidebar (example: https://www.zehnideen.de/lumos-matrix-fahrradhelm) and directly in an article (example: https://www.zehnideen.de/amazon-retouren-kaufen).
The ads are displayed correctly in the article. But there is just an empty white box in the sidebar. The Adsense code is the same.
Any ideas?
Thanks you so much,
Lars
Hi Lars,
I noticed that the code in the sidebar was added using a paragraph block, can you try using a custom HTML block instead?
Hi Ying,
i used a custom HTML Block, but there was a <p> and </p> in the AdSense code - dont know why. I removed it and now it works. Thank you so much!
Lars
Sorry, apparently the problem is not solved yet. Whenever I paste the code into the widget as an HTML block, everything looks fine. After saving, the tags <p> and </p> are automatically inserted and it no longer works.
What could be the reason?
GP doesn't alter the HTML code, I'm not sure why it happens.
But when I check your sidebar, it seems to be working:
Alright Ying, it seems to be working. Thank you!
You are welcome :)