I was using a shortcode [currency_switcher] inside the menu with special plugin.
But I just changed the integration, it is now like that in functions.php:
/* Add currency switcher to top bar menu ========== */
add_filter(‘wp_nav_menu_items’,’add_search_box_to_menu’, 10, 2);
function add_search_box_to_menu( $items, $args ) {
if( $args->theme_location == ‘top-bar-menu’ )
do_action(‘wcml_currency_switcher’, array(‘format’ => ‘%code%’, ‘switcher_style’ => ‘wcml-dropdown’));
return $items;
}
When trying to change ‘wcml-dropdown’ to my template name (‘ambery’), frontend shows blank page only (even when debug mode is on). Also, when using ‘wcml-dropdown’, plugin still shows a vertical list. It becomes dropdown only when turning on “Show a currency selector on the product page template” in Multi-currency Settings.