Location of the Menu in Header Right Widget

Community Forums Forums Design Tips and Tricks Location of the Menu in Header Right Widget

This topic is: resolved

This topic contains 2 replies, has 2 voices, and was last updated by  laflamme3e 8 months, 2 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #94687

    laflamme3e
    Member
    Post count: 9

    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
    #94751

    Au Coeur
    Participant
    Post count: 102

    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.

    #94758

    laflamme3e
    Member
    Post count: 9

    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.

    • This reply was modified 8 months, 2 weeks ago by  laflamme3e.
    • This reply was modified 8 months, 2 weeks ago by  laflamme3e.
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.