• 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

(Solved) Customize Hooks in Page Templates

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 › (Solved) Customize Hooks in Page Templates

This topic is: resolved
  • This topic has 1 reply, 2 voices, and was last updated 12 years, 10 months ago by Gary Jones.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • September 16, 2013 at 1:29 am #62780
    gsmaster
    Member

    I want to create a very simple custom template which is 99% the same
    > as the landing page of my actual theme...
    >
    > The only thing I want changed is a piece of code that I added via "Simple
    > Hooks" plugin
    > in order to show in all my pages and posts.
    >
    > I dont want this hook to show in this custom landing page...
    >
    > The hook is "genesis_before_post_content" ...
    >
    > I tried to do this on my template:
    >
    > remove_action( 'genesis_before_post_content',
    > 'genesis_before_post_content' );
    >
    > but that does not do anything to it...
    >
    > Can you please let me know how to make this work?

    Solution:

    You are going to need to make your code in Simple Hooks
    conditional.
    Here is a tutorial with some details on how to do that.
    http://nickc.co/conditional-content

    You will be using the ! is_page() or ! is_page_template( 'template-file-name.php' )
    boolean function in your conditional code.

    Thanks a lot for your help
    Gustav

    October 18, 2013 at 8:19 pm #67518
    Gary Jones
    Member

    🙂


    WordPress Engineer, and key contributor the Genesis Framework | @GaryJ

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘(Solved) Customize Hooks in Page Templates’ is closed to new 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