• 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

Switching Primary Menu in Mai Lifestyle theme to Header Right 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 › Switching Primary Menu in Mai Lifestyle theme to Header Right Menu

This topic is: not resolved
  • This topic has 6 replies, 3 voices, and was last updated 7 years, 8 months ago by JiveDig.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • May 18, 2018 at 2:33 am #220035
    caballoganador
    Member

    Hi everyone,

    I hope that someone can help me...

    I'm using the genesis modal login box and the plugin only let me to choose primary or secondary menu to set de login options. As I am using the header right menu as my primary menu, I need to change the default primary menu to be Header right menu.

    Many thanks for your help

    https://bchef.es/
    May 18, 2018 at 6:02 am #220038
    Terry
    Member

    Looks like you got it, nice!

    May 18, 2018 at 8:28 am #220050
    JiveDig
    Participant

    Hi there, you can certainly do it with code but I'm wondering if it will work by just using a Navigation Menu widget in the Header Right widget area. Give that a shot and report back!


    Lead developer of Mai Theme

    May 18, 2018 at 9:07 am #220052
    caballoganador
    Member

    Hello,

    Terry, I did not get it 🙁

    JiveDig, I'm trying using a Navigation Menu widget in the Header Right widget area but the Genesis login modal box not shown

    I'm afraid I need to change the code so that the header right menu be the primary menu...

    Thanks for all the help

    May 18, 2018 at 9:18 am #220053
    JiveDig
    Participant

    I just looked at the code for the plugin and I think you're better off just filtering the menu location in the plugin settings.

    You can try this code to the bottom of functions.php:

    
    // Force Genesis login modal box plugin to use Header Right nav menu location.
    add_filter( 'genesis_pre_get_option_glmb_position', function( $menu ) {
    	return 'header_right';
    });
    

    Lead developer of Mai Theme

    May 18, 2018 at 12:10 pm #220059
    caballoganador
    Member

    It works perfect!

    Thank you very much!!

    May 18, 2018 at 12:16 pm #220060
    JiveDig
    Participant

    ?? Great!


    Lead developer of Mai Theme

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