• 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

Nav Menu Snippets page is incorrect, among others

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 › Nav Menu Snippets page is incorrect, among others

This topic is: not resolved

Tagged: code, menus, navigation, snippets

  • This topic has 1 reply, 1 voice, and was last updated 7 years, 7 months ago by chuckreynolds.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • June 12, 2015 at 9:09 pm #156043
    chuckreynolds
    Member

    Couple issues I noticed on the Navigation Menus Snippets page (and Brian's blog post) along with the gists...
    reference 1: http://my.studiopress.com/snippets/navigation-menus/
    reference 2: https://gist.github.com/studiopress/5700303
    reference 3: http://briangardner.com/code/navigation-menus/

    1. the "primary" and "secondary" snippets are switched
    2. the code is adding theme support instead of removing theme support

    "Below is the code to unregister the primary navigation menu:" shows instead adding secondary menu.
    It should (probably) be remove_theme_support( 'genesis-menus', 'primary' );

    "Below is the code to unregister the secondary navigation menu:" shows instead adding primary menu.
    It should (probably) be remove_theme_support( 'genesis-menus', 'secondary' );

    http://my.studiopress.com/snippets/navigation-menus/
    June 12, 2015 at 9:30 pm #156045
    chuckreynolds
    Member

    ...ok so Brian said they're correct.

    My scenario was the child theme hadn't registered one or the other and I needed to remove the secondary but leave the primary intact. To me, I just needed to unregister the secondary... I guess the way this works is I needed to declare the primary menu, which evidently only enables that one instead of both of them by default. It's confusing.

    Anyways... I made my stuff work already and thought I'd mention this but I guess that's the way it's supposed to work. *shrug*

    cheers

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 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

© 2023 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