• 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

Genesis Menus

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 › Genesis Menus

This topic is: not resolved
  • This topic has 2 replies, 2 voices, and was last updated 10 years, 11 months ago by Joseph Lee.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • June 24, 2014 at 1:53 pm #111341
    Joseph Lee
    Member

    Does anyone have a snippet to replace a menu?

    I have a front-page.php that is the front page of a website. I want a specific menu (front-page-navigation) to appear on that page. I can't use simple menu because the front page isn't a page in the wordpress dashboard.

    Is there a snippet to remove the primary nav and replace it with navigation "whatever"?

    June 25, 2014 at 12:13 pm #111494
    Robin
    Member

    This question intrigued me and I didn't see an immediate answer when I googled, so I played with it a bit and came up with this snippet: conditionally replace primary navigaion on the front page.

    I don't know if it's the absolute best way, but it did work for me. It's basically duplicating the genesis_do_nav function because of the markup and styling, but you do have to add the name of your custom menu on line 27.

    Also the gist presupposes your primary navigation is in genesis_before_header because that's where mine is, but if yours is in genesis_after_header, then you'd replace that throughout. HTH


    I do the best I can with what I’ve got. (say hey on twitter)

    June 25, 2014 at 12:19 pm #111496
    Joseph Lee
    Member

    Oh very nice. Thanks.

  • 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