• 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

Switch primary and secondary mobile nav

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 › Switch primary and secondary mobile nav

This topic is: resolved

Tagged: mobile navigation order

  • This topic has 4 replies, 2 voices, and was last updated 8 years, 6 months ago by btwebmedia.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • April 22, 2017 at 11:07 am #205159
    btwebmedia
    Participant

    Hello is it possible to switch the primary and secondary mobile menu order on the Metro theme. Currently on mobile devices the secondary menu is displaying first which means the "Home" link is in the middle of the navigation instead of being first.

    https://caveconservancyofvirginia.org/ccv/
    April 25, 2017 at 6:32 am #205248
    btwebmedia
    Participant

    Any suggestions for this? Thanks.

    April 25, 2017 at 11:01 am #205284
    Victor Font
    Moderator

    The secondary navigation menu is repositioned on line 77 in functions.php. You can comment out the two lines and the secondary menu will be after the primary.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    April 25, 2017 at 11:50 am #205288
    btwebmedia
    Participant

    Vic thanks for responding. My line 77 in functions is blank. Which lines need to be commented out?

    // Setup our responsive menu settings.
    function metro_get_responsive_menu_settings() {

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

    ),
    ),
    );

    return $settings;

    April 26, 2017 at 9:38 am #205347
    btwebmedia
    Participant

    By modifying this section of the code I was able to fix my issue:

    'combine' => array(
    '.nav-primary',
    '.nav-secondary',
    '.nav-header',

    The original order had the '.nav-secondary' listed first. If there is a better fixed I'm interested. Thanks.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Switch primary and secondary mobile nav’ 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

© 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