• 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

Select menu for mobile 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 › Select menu for mobile menu

This topic is: not resolved

Tagged: nav menu, wellness pro

  • This topic has 3 replies, 2 voices, and was last updated 3 years, 1 month ago by Brad Dalton.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • May 22, 2019 at 5:58 am #491293
    vissersj
    Participant

    In the Wellness Pro child theme I use two menus in the Header Right widget. In mobile viewing a Hamburger is used and all menus are combined. Though I only want a specific menu to be used for the Hamburger in mobile viewing. Is there a way to adjust the code snippet below to only use the custom menu for the Hamburger?

    // Rename primary and secondary navigation menus.
    add_theme_support( 'genesis-menus', array( 'primary' => __( 'After Header Menu', 'wellness-pro' ), 'secondary' => __( 'Footer Menu', 'wellness-pro' ), 'custom' => __( 'Mobile Hamburger Menu', 'wellness-pro' ) ) );

    // Define our responsive menu settings.
    function wellness_responsive_menu_settings() {

    $settings = array(
    'mainMenu' => __( 'Menu', 'wellness-pro' ),
    'subMenu' => __( 'Submenu', 'wellness-pro' ),
    'menuClasses' => array(
    'combine' => array(
    '.nav-header',
    '.nav-primary',
    ),
    ),
    );

    return $settings;

    }

    May 22, 2019 at 8:22 am #491295
    Brad Dalton
    Participant

    Link to your site please.


    Recent Client work

    May 22, 2019 at 8:27 am #491296
    vissersj
    Participant

    Link website is https://tinyurl.com/yxvvb5vs , but I have put /*'.nav-header',*/ because I couldn't find a way to make it work with Hamburger menu in mobile viewing.

    May 22, 2019 at 8:48 am #491297
    Brad Dalton
    Participant

    Remove the menu from the js.

    '.nav-header', 
    

    or

    '.nav-primary',
    

    Recent Client work

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

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