• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Genesis Simple Hooks – Disable on Categories

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

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

This topic is: not resolved

Tagged: Genesis Simple Hooks

  • This topic has 3 replies, 2 voices, and was last updated 9 years, 7 months ago by nutsandbolts.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • February 5, 2014 at 5:15 pm #88851
    redgsr
    Member

    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

    February 5, 2014 at 6:31 pm #88867
    nutsandbolts
    Member

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


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

    February 8, 2014 at 7:42 pm #89413
    redgsr
    Member

    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.

    February 8, 2014 at 7:43 pm #89414
    nutsandbolts
    Member

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


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

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble