• 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

Location of the Menu in Header Right Widget

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 › Location of the Menu in Header Right Widget

This topic is: resolved

Tagged: header right widget, theme_location

  • This topic has 4 replies, 3 voices, and was last updated 10 years, 7 months ago by Jess.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • March 13, 2014 at 9:59 am #94687
    laflamme3e
    Member

    Hello,

    I need to define for a function the theme_location of a menu in the header right widget.

    For example, the Primary Menu is:

    theme_location == 'primary'

    And the Secondary Menu is:

    theme_location == 'secondary'

    What is the equivalent for a menu in the header right widget?

    Thanks

    Pierre

    http://www.3eing.ca
    March 13, 2014 at 2:25 pm #94751
    Au Coeur
    Member

    Are you just trying to put a menu in the header right area? If so, you can do that by adding the custom menu widget to that area and selecting your menu in the widget.


    Mother. Web & Graphic Designer. Lactation Consultant. Blogging about how it all fits together, most recently from northern Colorado. Visit my blog or my design site.

    March 13, 2014 at 2:51 pm #94758
    laflamme3e
    Member

    In fact, I am trying to display only one of two languages (french and english) in the selector in my header menu. And I need to do so for the header menu only.

    Someone from WPML gave me a code in which I have this line:

    if (function_exists('icl_get_languages') && $args->theme_location == 'primary') {

    But I must change 'primary' in the code for the menu location I want which is the menu in header right widget.

    June 2, 2015 at 11:41 am #154572
    Jess
    Participant

    i am looking for the same i need menu location for header right widget...Was this resolved?

    June 3, 2015 at 6:53 am #154700
    Jess
    Participant

    if this was not resolved
    if (function_exists(‘icl_get_languages’) && $args->theme_location == ‘’) {

    it is ‘’ instead of primary

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