• 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

Not show Adsense on specific page/s

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 › General Discussion › Not show Adsense on specific page/s

This topic is: not resolved

Tagged: adsense

  • This topic has 2 replies, 2 voices, and was last updated 11 years, 2 months ago by Leonidt1985.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • April 13, 2015 at 5:57 pm #147805
    Leonidt1985
    Member

    Hi there,

    I am using the genesis simple hooks plugin which automatically adds my adsense code to every page.

    But there are some pages where I don't want that particular ad to show up. How can I specify if I don't want the ad show on a specific page?

    For example, I don't want the ad at the bottom of this page to show up:

    How to Dubstep Video Course

    Thanks in advance.

    April 13, 2015 at 11:33 pm #147818
    Brad Dalton
    Participant

    You can use conditional tags with the post I.D or slug.

    Conditional tags should be added after the function as you can see in these examples.

    You could remove the code from simple hooks and use it in your functions file with the same hook.

    Here's a guide to using hooks in custom functions.


    Tutorials for StudioPress Themes.

    April 14, 2015 at 7:36 am #147851
    Leonidt1985
    Member

    Can you please provide me the specific code that I can input to hide adsense code on that page?

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ 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

© 2026 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