Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 5:00 – 13:00 5:00 – 13:00 5:00 – 13:00 5:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: America/Argentina/Buenos_Aires (GMT-03:00)

This topic contains 3 replies, has 0 voices.

Last updated by Otto 5 days, 13 hours ago.

Assisted by: Otto.

Author Posts
July 1, 2025 at 3:21 pm #17188208

fanZ-3

Background of the issue:
I want to put the currency switch button on the main menu, but I don’t know how to do it. Please help me achieve it. Thank you.

Symptoms:
I want to put the currency switch button on the main menu, but I don’t know how to do it. Please help me achieve it. Thank you.

Questions:
I want to put the currency switch button on the main menu, but I don’t know how to do it. Please help me achieve it. Thank you.

July 1, 2025 at 4:28 pm #17189550

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

To ensure the quickest and most accurate support, please provide your debug information so I can look at some of your configurations. We have an excellent article on how to locate it here: https://wpml.org/faq/provide-debug-information-faster-support/.

Can you please elaborate on how the menu was created? It's an "old fashion" menu? A Gutenberg navigation template? Or did you build it with another page builder? This will allow me to provide you with the right documentation.

Here you have a few options though:
https://wpml.org/documentation/related-projects/woocommerce-multilingual/multi-currency-support-woocommerce/#adding-a-currency-switcher-to-the-front-end

Best Regards,
Otto

July 2, 2025 at 5:12 am #17190652
fanZ-3

I am using the flatsome theme of woocommerce.

Regarding the error, I have solved it. It was caused by the Chinese bracket character translation plug-in not being able to recognize it. I hope your company can optimize it later.

First, the language plugin is called incorrectly. I need the home page to be the same as the shop page. The language plugin at the top can switch multiple languages. Now the home page only displays one language. Please tell me how to modify it to be consistent?

Second, I need to insert the currency switch button "CURRENCY" in the main navigation menu of my home page, but I can't do it now. Please tell me how to do it

I hope you can help me to solve my questions.Thank you

网址:www.nursinginstrument.com

New threads created by Otto and linked to this one are listed below:

https://wpml.org/forums/topic/i-need-the-home-page-to-be-the-same-as-the-shop-page/

20250702115857.png
20250702130548.png
20250702130612.png
July 2, 2025 at 1:54 pm #17193446

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Regarding the currency switcher, you can try any of these solutions:

❌ Please make a full website backup before proceeding ❌

Solution A – Add the shortcode in Flatsome Header Builder (recommended)
• Make sure WooCommerce Multilingual & Multicurrency is active and the currencies are configured (WooCommerce → WooCommerce Multilingual & Multicurrency → Multicurrency tab).
• Copy the [currency_switcher] shortcode
• Go to Flatsome → Theme Options → Header and launch the Header Builder.
• Drag an HTML element (or Shortcode block if available) into the Main Navigation row, ideally to the far right.
• Paste the shortcode, save, then clear all caches.
• Check the front-end: the switcher should now appear inside the main menu and inherit Flatsome styling.

Solution B – Append the switcher via PHP hook
• Create/activate a child theme.
• Add to functions.php:

add_filter( 'wp_nav_menu_items', function ( $items, $args ) {
    if ( $args->theme_location === 'primary' ) {
        $items .= '<li class="menu-item currency-switcher">'
            . do_shortcode( '[currency_switcher]' )
            . '</li>';
    }
    return $items;
}, 20, 2 );

• Adjust theme_location if your menu uses a different location slug.
• Flush caches and verify.

Solution C – Use the “Shortcode in Menus” plugin
• Install Shortcode in Menus from WP.org.
• Go to Appearance → Menus, add a Custom Link with # as URL and [currency_switcher] as Link Text.
• The plugin renders that shortcode on the front-end, turning the menu item into a live currency selector.

Regarding the shop/home page issue, I created a new ticket so it's easy to follow:
https://wpml.org/forums/topic/i-need-the-home-page-to-be-the-same-as-the-shop-page/

I'll reply there.

Best Regards,
Otto