• 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 genesis_after_header

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 genesis_after_header

This topic is: not resolved

Tagged: genesis_after_header, genesis_entry_footer

  • This topic has 4 replies, 3 voices, and was last updated 9 years, 7 months ago by jeremyers1.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • May 10, 2016 at 10:49 pm #185381
    jeremyers1
    Member

    I would like to remove some hooks from one of my custom page templates.

    What do I put in the custom-page.php file to remove the following hooks?

    genesis_after_header
    genesis_entry_footer


    Blogger and Author

    May 11, 2016 at 12:14 am #185386
    Brad Dalton
    Participant

    No need to remove them as they're built into Genesis not your child theme.


    Tutorials for StudioPress Themes.

    May 11, 2016 at 8:09 am #185401
    jeremyers1
    Member

    I'm using Genesis Simple Hooks Plugin which adds them into my child theme. I need the genesis_after_header and
    genesis_entry_footer on most of my pages, but not on the custom page template I am creating. So is there a line of code I can add to the custom page template to remove genesis_after_header and genesis_entry_footer?

    Maybe this is actually a question for the plugin support over on WordPress....

    It looks like this might work:
    https://wordpress.org/support/topic/exclude-hooks-from-landing-page-template

    I'll give it a try.


    Blogger and Author

    May 11, 2016 at 9:39 am #185409
    Victor Font
    Moderator

    Wrap the code you inserted into those hooks in Genesis Simple Hooks in a conditional that excludes the custom template.


    Regards,

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

    May 11, 2016 at 10:36 am #185412
    jeremyers1
    Member

    Yes, that is what I ended up doing. It worked. Thanks!


    Blogger and Author

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