How to properly insert adsense codes please ?
I’m having trouble inserting adsense codes on my blog especially below the primary menu bar at the top of the page and within the articles (posts).
I tried to add a widget in the header but it doesn’t display properly. Then I sought to add the code in the file single.php for InArticle adsense as recommended on a website but it seems that the code is different so I could not…
I found in the customization menus, an option called “Ads” in “Graphene: General”, but when I tried to paste my adsense codes there and checked “show ads” and “front page”, nothing happened…
Can anyone assist me in inserting properly the codes to have the ads displayed where I wish ?
Thank you so much for your help,
Edit : I’ve just noticed that the ads are now displayed in between the posts excerpts on the front page and archive pages + at the bottom of each post but nothing below the primary menu…
(I pasted 2 different adsense codes in the Ads section of the customizing menu).
Is it a random display or is there any possibility to choose the location of display ?
Thanks again for any insight on this matter,
The location is fixed – the ads are displayed in-between posts when on the home or archive pages. When on a single post page, the ad is displayed at the end of the post.
To insert the ads elsewhere, you can use Graphene’s Action Hooks Widget Areas feature.
After giving it some thought, I was wondering where in the theme files the location of the different types of adsense ads (InArticle, etc) were defined please ?
For instance, where’s the code setting the location of Adsense at the end of the post in the case of InArticle adsense ?
Thank you very much for your kind help,
You must be logged in to reply to this topic.