• 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

Removing Navigation From Homepage ONLY

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 › Removing Navigation From Homepage ONLY

This topic is: resolved

Tagged: removing navigation

  • This topic has 4 replies, 3 voices, and was last updated 11 years, 8 months ago by Kim Turcotte.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • February 4, 2014 at 5:39 pm #88635
    cartess3
    Member

    I'm using the Metro theme and wanted to know if there is a way to simply remove the navigation menu from the homepage only? I want it to show up on all the other pages as usual, just not the homepage. Is this possible?

    I appreciate any help in advanced.

    http://flippingfurnitureforprofit.com/
    February 4, 2014 at 8:58 pm #88658
    nutsandbolts
    Member

    Yep, it's possible. Try adding this to your functions.php:

    //* Remove the primary navigation menu on home/front page
    remove_action( 'genesis_after_header', 'genesis_do_nav' );
    add_action( 'genesis_after_header', 'sk_do_nav' );
    function sk_do_nav() {
    	if ( is_home() || is_front_page() )
    		return;
    	genesis_do_nav();
    }

    If you haven't edited functions.php before, here are a few tips:

    • Always keep a clean copy somewhere easy to access. You can do this by downloading the file via FTP or just copying/pasting it into a text editor.

    • Don't edit functions.php in your dashboard - one missing comma and you can break your whole site. Instead, edit via FTP so you can easily paste in the original if something goes wrong.

    • Never copy a function from the StudioPress email notification because it strips out the formatting. Instead, come to the forum directly to get the snippet you need.

    Hope that helps!


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    February 6, 2014 at 10:56 am #88956
    cartess3
    Member

    That worked... Thanks soooo much Andrea!!!

    February 6, 2014 at 10:56 am #88957
    nutsandbolts
    Member

    No problem! Glad I was able to help. 🙂


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    May 12, 2014 at 11:35 am #104690
    Kim Turcotte
    Member

    would you just substitute subnav for nav if you want to remove the sub navigation or secondary navigation from the homepage only?

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Removing Navigation From Homepage ONLY’ 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