menu_to_use parameter not working on the shortcode code
-
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.
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
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.