Genesis Simple Hooks – Disable on Categories

Community Forums Forums Design Tips and Tricks Genesis Simple Hooks – Disable on Categories

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  nutsandbolts 5 months, 3 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #88851

    redgsr
    Member
    Post count: 6

    I am inserting JavaScript into the Post/Page hooks. This JavaScript creates Ads under each article which works as expected. The problem is the Ads are also showing on Category pages. Does anyone know how I can exclude Category pages?

    Thank You

    #88867

    nutsandbolts
    Moderator
    Post count: 3113

    You can use the conditional if ( !is_archive() ) to exclude category pages, date archives, etc.


    Andrea Whitmer, Owner, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

    #89413

    redgsr
    Member
    Post count: 6

    Thanks but can you be more specific. I’m not code savvy at all – I’m looking for the full code to disable on category/archive pages.

    #89414

    nutsandbolts
    Moderator
    Post count: 3113

    Can you paste in exactly what’s in the box in Simple Hooks?


    Andrea Whitmer, Owner, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

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

You must be logged in to reply to this topic.