• Resolved tuomvii

    (@tuomvii)


    Hi!

    I’ve added the following code to the footer.php file:

    switch(get_locale()) :
            case 'fi' : $menu = 'Mobiilivalikko'; break;
            case 'en_GB' : $menu = 'Mobile Menu'; break; 
            case 'sv_SE' : $menu = 'Mobilmeny'; break;
            default : $menu = ''; 
        endswitch; 
        echo do_shortcode('[rmp_menu id="1376" menu_to_use="' . $menu . '"]');

    Still, the menu connected via shortcode only uses the one menu added and it does not change it via the menu_to_use parameter when the language of the site is changed. What is the problem? The menu_to_use parameter doesn’t even work when I add the name statically.

    • This topic was modified 2 years, 6 months ago by tuomvii.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @tuomvii ,

    I need to discuss this with my development team. Hopefully, I will get back to you with the solution.

    Regards,
    Sumit

    Hi @tuomvii

    Our [rmp_menu] short-code supports only one parameter that is id. you can’t use the menu_to_use parameter in short-code for multi-language support in the basic version of RM. You need to use an advanced version of RM. Let me know if you need more help.

    Regards,
    Sumit

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘menu_to_use parameter not working on the shortcode code’ is closed to new replies.