• 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

How to Remove Navigation Menus from a Certain Page

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 › How to Remove Navigation Menus from a Certain Page

This topic is: resolved

Tagged: navigation menu, remove navigation menu, streamline

  • This topic has 6 replies, 2 voices, and was last updated 12 years, 10 months ago by Susan.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • December 18, 2012 at 8:19 am #5917
    ryan.collins19
    Member

    Hello everyone!

    Quick question here if anyone can help out.  Any insight is greatly appreciated.

    I use the Streamline Child Theme on my fishing blog and was wondering if there is simple way to not display the navigation menus on just this page here - http://myfishingcapecod.com/membership-options-page/

    I would rather have the content appear directly beneath the header if possible - but just for this one particular page.

    As mentioned above any words of wisdom is greatly appreciated.

    Thanks and take care,

    Ryan

    December 18, 2012 at 9:04 am #5924
    Susan
    Moderator

    Try this:

    remove-the-navigation-menu-from-a-genesis-child-theme

    Place this in your functions.php (replacing page (2) with your page-ID):

    //Remove Menu from page
    add_action('get_header', 'child_remove_genesis_do_nav');
    function child_remove_genesis_do_nav() {
    if (is_page(2)) {
    remove_action('genesis_after_header', 'genesis_do_nav');
    }
    }
    December 18, 2012 at 12:55 pm #5977
    ryan.collins19
    Member

    It worked!  Wonderful job Susan.

    Thanks so much for the assistance.

    Take care,

    Ryan

    December 18, 2012 at 1:02 pm #5978
    ryan.collins19
    Member

    Oh, actually while I have your attention - is there a way to remove the secondary navigation menu on this page ? - http://myfishingcapecod.com/membership-options-page/

    Your code worked wonderfully to remove the primary navigation menu - just wondering if there is also an easy way to remove the secondary menu.

    Thanks so much for the help,

    Ryan

    December 18, 2012 at 1:25 pm #5980
    Susan
    Moderator
    Try this (basically same code as above, but replacing "nav" with "subnav")
    
    //Remove Secondary navigation from page
    add_action('get_header', 'child_remove_genesis_do_subnav');
    function child_remove_genesis_do_subnav() {
    if (is_page(2)) {
    remove_action('genesis_after_header', 'genesis_do_subnav');
    }
    }
    December 18, 2012 at 4:16 pm #6019
    ryan.collins19
    Member

    Worked like a charm - thank you!

    December 18, 2012 at 4:25 pm #6023
    Susan
    Moderator

    You're welcome. 🙂

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘How to Remove Navigation Menus from a Certain Page’ 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

© 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