Adsense location

  • Terso


    Is there a way to move the adsense location above a post rather than below it?


    Syahir Hakim


    At the moment, not without editing the theme’s core files. Future version will include an action hook that you can use to safely add the adsense ads above the post via child theme.



    I also have a question related to adsense in the Graphene theme.

    On my site, I have more than three posts listed on each page. As you know, adsense will only show three adverts per page, therefore I have gaps between some posts where the ads should be. Is there any way for me to remove these gaps or perhaps a work-around?

    Secondly, I just wanted to say thanks for all your work. Graphene is a great theme.


    Syahir Hakim



    I’ll modify the theme’s codes so that it’ll only display at most 3 adsense ads. Will be available in the next update.



    I only just checked back on the forum, Syahir. Thanks very much for including that update.



    I have a static front page, set to the “About” page. I tried activating Adsense, and chose NOT to display on the front page… but it insists on displaying ads on the front page. The only way I’ve found to keep them off the front page is to let it show the most recent posts, which I really don’t want to do.

    What am I doing wrong?


    Syahir Hakim


    Try replacing line 182 of the loop.php file (in version 1.2.1) with this line:

    <?php if (!is_front_page() || (is_front_page() && $graphene_settings['adsense_show_frontpage'])) {graphene_adsense();} ?>

    Let me know if that works.

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

  • You must be logged in to reply to this topic.