[Resolved] Can GP Hooks be used on some pages and not on others?

Home Forums Support [Resolved] Can GP Hooks be used on some pages and not on others?

Home Forums Support Can GP Hooks be used on some pages and not on others?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #83999
    Will

    I’ve been looking at the GP hooks add-on. It looks as though it’s designed to insert code and content into the web site on a site wide basis. Does this mean it appears on every page of the site?

    Is there any way of inserting code and content, but on a per page basis?

    For example, say I want to insert Adsense onto 10 specific pages of my site, and not onto every single page.

    Is there a way I can install the code (into a Hook?) onto those 10 pages, and then fill it with code for a 300×250 sized ad. Then, at a later stage, I can remove 300×250 code from the Hook and insert 728×90 code so that it will change the ad on all those 10 pages in one go?

    Thanks,

    Will

    #84032
    Tom
    Lead Developer
    Lead Developer

    Hi Will,

    Absolutely – you can use the WordPress php conditionals.

    More info here: http://generatepress.com/forums/topic/is-this-possible/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.