• 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

Remove Simple Hooks from Landing Pages

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 › Remove Simple Hooks from Landing Pages

This topic is: not resolved

Tagged: exclude simple hooks, landing page template

  • This topic has 5 replies, 2 voices, and was last updated 9 years, 8 months ago by Victor Font.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • October 26, 2015 at 2:09 pm #169107
    tikvah73
    Member

    I am using Genesis with a 3rd party theme from Restored 316 Designs. I have a couple of images (ads and affiliate disclaimer) in place before every post or page which I have inserted using the Simple Hooks plugin. I need to exclude those images from showing up on the Landing Page template. Is there a code snippet I can use to exclude alls simple hooks by placing the code in my landing page php file? I am also comfortable inserting code in my CSS file, but I don't know exactly how to build the code I need to do this.

    On http://homeschoolencouragement.com/free-printable-pumpkin-coloring-page-for-fall/ you can see the two ads (LEGO and NotebookingPages.com and the text image for Affiliate Disclaimer.)

    Thanks.

    http://homeschoolencouragement.com
    October 26, 2015 at 3:56 pm #169117
    Victor Font
    Moderator

    You could wrap the code you have in simple hooks in a php if statement to exclude the landing page template:

    <?php 
    if (! is_page_template("your-template-name") ) { ?>
    
    your code 
    
    <?php
    }
    ?>

    Make sure the Execute php on this hook is checked.

    Here are more details on that function: https://codex.wordpress.org/Function_Reference/is_page_template


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    October 26, 2015 at 4:08 pm #169123
    tikvah73
    Member

    Okay - I tried that using this:

    <?php
    if (! is_page_template("Landing") ) { ?>

    <center>FREE Shippin on any order of $75 or more any time!</center>

    <?php
    }
    ?>

    And it did not work. Do you see what is wrong with this? I did make sure that "execute php" was checked.

    You can see this in action here: http://homeschoolencouragement.com/products/

    I will check out the link you provided as well. Thank you for your help.

    October 26, 2015 at 4:08 pm #169124
    tikvah73
    Member

    Aha. I need to figure out github apparently because it actually inserted my image and link. Shoot.

    October 26, 2015 at 4:12 pm #169126
    tikvah73
    Member

    I was able to figure out the change I needed using the link you provided to codex. Thank you.

    October 26, 2015 at 7:49 pm #169148
    Victor Font
    Moderator

    Awesome!


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 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

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