Hi. I’m using Google Ad Manager to display ads on the website. These are ads from our sponsors/advertisers. I copied the tags of one ad unit (top-centre) from Google Ad Manager and added it to the Code injection Header and Footer. The ads did display but they were in the wrong place (bottom-left). I’m using the theme source v.1.4.1. How do I make the ads display correctly without editing the theme files?
Thank you.
Hi @Dx2, if without editing of the theme files, then the only option is to insert to the DOM needed Ad elements via javascript (custom code for Code Injection).
The custom javascript will need to:
- find needed places in the page
- add new Ad elements to the DOM
- init Ads (to trigger render/load)
IMHO, theme files will work better for this task as it will be simpler.