• 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

Dropdown functionality in tertiary menu

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 › Dropdown functionality in tertiary menu

This topic is: not resolved

Tagged: third menu

  • This topic has 2 replies, 2 voices, and was last updated 9 years, 1 month ago by ollyc.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 25, 2017 at 11:46 am #203810
    ollyc
    Member

    Hi everyone. I'm using the Wellness theme and have added a tertiary navigation for Woocommerce product categories. This is because Wellness has a primary and footer navigation but no default secondary navigation.

    I'm having trouble trying to enable dropdowns in this tertiary menu. I know it's something to do with 'depth' but I'm not sure where to add this.

    Here's the custom function I'm using for the tertiary menu.

    What do I need to add to enable dropdowns?

    // Add tertiary menu used for product categories

    function register_additional_menu() {

    register_nav_menu( 'third-menu' ,__( 'Third Navigation Menu' ));

    }
    add_action( 'init', 'register_additional_menu' );

    add_action( 'genesis_after_header', 'add_third_nav_genesis', 50 );

    function add_third_nav_genesis() {

    wp_nav_menu( array( 'theme_location' => 'third-menu', 'container_class' => 'genesis-nav-menu' ) );

    }

    March 26, 2017 at 2:38 pm #203845
    Marcy
    Participant

    You want to specify a depth of 0 for a drop down. Also you can use the container_class for the wrap, so that the menu has the same width as the other wraps, and then the menu_class should have something in addition to genesis-nav-menu to help with styling.

    	genesis_nav_menu( array(
    		'theme_location' => 'third-menu',
    		'container'       => 'div',
    		'container_class' => 'wrap',
    		'menu_class'     => 'menu genesis-nav-menu third-menu',
    		'depth'           => 0
    	) );

    Marcy | Amethyst Website Design | Twitter

    March 27, 2017 at 1:43 pm #203910
    ollyc
    Member

    Thank you so much Marcy, that's sorted it!

    I don't know where I'd be without this community 😀

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

© 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