How to properly insert adsense codes please ?

  • Alex75017

    #49595

    Dear all,

    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,

    Kind regards,

    Alexandra

    Alex75017

    #49597

    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,

    Alexandra

    Admin

    Syahir Hakim

    #49607

    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.

    Alex75017

    #49615

    OK thank you very much, I’ll have a look at those !
    The page seems very helpful 🙂

    Alex75017

    #49621

    Dear Syahir,
    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,

    Alexandra

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.