• 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 Primary Navigation from Specific 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 › General Discussion › Remove Primary Navigation from Specific Page

This topic is: not resolved

Tagged: Remove Primary Navigation

  • This topic has 2 replies, 2 voices, and was last updated 9 years, 1 month ago by martag.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • September 14, 2016 at 8:28 pm #193174
    martag
    Participant

    Howdy,

    I'm trying to remove the primary navigation from a specific page on my site - I tried this:

    add_action('get_header', 'wpsites_remove_genesis_do_nav');
    /**
    * @author Brad Dalton - WP Sites
    * @example http://wp.me/p1lTu0-9Nr
    * @copyright 2014 WP Sites
    */
    function wpsites_remove_genesis_do_subnav() {
    if (is_single('007') ) {
    remove_action('genesis_after_header', 'genesis_do_nav');
    }
    }
    ----------------------------------
    How do I change that to be primary navigation? Would it look like this?

    add_action('get_header', 'wpsites_remove_genesis_do_nav');
    /**
    * @author Brad Dalton - WP Sites
    * @example http://wp.me/p1lTu0-9Nr
    * @copyright 2014 WP Sites
    */
    function wpsites_remove_genesis_do_nav() {
    if (is_single('007') ) {
    remove_action('genesis_after_header', 'genesis_do_nav');
    }
    }

    Thanks!

    http://www.bizeasesupport.com/delegate/
    September 14, 2016 at 9:27 pm #193176
    Genesis Developer
    Member

    Yes


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    September 15, 2016 at 6:01 pm #193226
    martag
    Participant

    Thank you!! Got it to work by also changing

    if (is_single('007') ) {

    to

    if (is_page('007') ) {

    ~Marta

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ 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