• 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

Unhooking a hook

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 › Unhooking a hook

This topic is: not resolved
  • This topic has 3 replies, 3 voices, and was last updated 12 years, 5 months ago by nickthegeek.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • December 4, 2012 at 11:55 am #3283
    kdubose
    Member

    http://eaglefordshale.com/eagle-ford-shale-advertising/

     

    I am trying to get rid of the hook "genesis_after_header" on this page.  I have created a custom template but can't figure out how to unhook this hook on the page.  Thanks for the assistance!!

    December 5, 2012 at 1:21 am #3406
    kdubose
    Member

    Anyone have any ideas?

    December 5, 2012 at 7:22 am #3427
    AnitaC
    Keymaster

    This might be a start - I am not a programmer or coder - but this is a code to reposition the navigation. But if you look at the code - it's removing and adding the navigation hooks. Maybe if you play with this code - you can unhook what you want, like use the REMOVE ACTION to remove it.  Sorry if I can't be of more help, I am learning as I go along too.

    /** Reposition the primary navigation menu */
    remove_action( 'genesis_after_header', 'genesis_do_nav' );
    add_action( 'genesis_before_header', 'genesis_do_nav' );


    Need help with customization or troubleshooting? Reach out to me.

    December 5, 2012 at 11:40 am #3449
    nickthegeek
    Member

    IF you are adding code to teh after header hook you need to make it conditional

    http://nickc.co/conditional-content

     

  • 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

© 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