An Adsense qestion

  • svamirac


    Hello, everyone.

    Syahir, thank you for the Graphene. I’m a first-time wp user, this is my first theme, and the exp so far is great.

    I need some help tweaking the theme’s Adsense managment, and would very much appreciate any help. The theme is configured to display 3 ads, within a category page (visible at, and I would like to have only 2.

    Also, is it possible to designate just one of the remaining fields to Adsense, and to give the other one to a different service?

    I understand this prolly requires some code tweaking but am hoping it’s not that complicated.


    Syahir Hakim


    In the next update, I’ve added a new filter hook graphene_adsense_ads_limit that you can use to hook a function to change the number of ad count. I’ve also added a unique ID to each adsense block, so you can target those IDs to style it differently, even hide a particular adsense ad block. You can then add another different ad service for any particular ad block using the graphene_show_adsense action hook.

    Graphene 1.3.1 will be released (hopefully) in the next day or two, so it won’t be a long wait 😀



    thx for getting back.

    just one more q: will it be possible to implement these adsense functionality changes without updating theme core files, through a child theme?


    Syahir Hakim


    Absolutely. That’s the whole point of adding those filter hooks and action hooks.



    That’s great. Thank you.

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

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