• Resolved fuertet9

    (@fuertet9)


    Hi, I was just wondering if there is a tidy way to switch which WordPress menu is loaded by Responsive Menu Pro. I’ve got a multilingual site and would like to switch navs based on the value my language variable.
    I have the WPML plug installed, and if it’s possible, i don’t want to add PHP code.

    Thanks you.

    https://wordpress.org/plugins/responsive-menu/

Viewing 1 replies (of 1 total)
  • Plugin Contributor responsivemenu

    (@responsivemenu)

    Hi there,

    Yes there is, enable the “Use Shortcode” option and then run a conditional check, for example:

    <?php
    
    if($language == 'English)
       echo do_shortcode('[responsive-menu']);
    else if($language == 'Spanish')
       echo do_shortcode('[responsive-menu menu="spanish"]');
    
    ?>

    Obviously the above needs to be tweaked to your own needs.

    All the best

Viewing 1 replies (of 1 total)

The topic ‘Dynamically change the menu by language used’ is closed to new replies.