Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are trying to make the currency switcher visible on your live site using Elementor by placing the shortcode

[currency_switcher format="%code% (%symbol%)"]

. It appears in the editor but not on the live site, despite clearing the cache, disabling WP Rocket, and trying it on a regular page.
Solution:
We found that the issue was due to having only one currency selected for each language, which is why the switcher didn't show. Once you select more than one currency, the switcher should appear correctly. Please verify if the header currency switcher is now functioning properly on your site.

If this solution does not resolve your issue or seems outdated, we recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please do not hesitate to open a new support ticket with us for further assistance.

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.

Tagged: 

This topic contains 2 replies, has 1 voice.

Last updated by iliyaI 8 months ago.

Assisted by: Osama Mersal.

Author Posts
April 8, 2025 at 6:46 pm #16910639

iliyaI

Background of the issue:
I am trying to make the currency switcher visible on my live site hidden link. I placed the shortcode [currency_switcher format="%code% (%symbol%)"] in Elementor, and it appears in the editor but not on the live site. I have cleared the cache, disabled WP Rocket, and tried placing the switcher on a regular page, but it still doesn't appear.

Symptoms:
The currency switcher is not visible on the live site, and there is no output of the shortcode in the HTML source.

Questions:
Why is the currency switcher not visible on the live site?
What steps can I take to ensure the shortcode outputs correctly on the front end?

April 9, 2025 at 5:21 pm #16915209

Bigul

Hello,

Welcome to the WPML support forum. Before passing this thread to my colleague, I would like to share some suggestions and possible solutions for the issues you mentioned.

This may be a compatibility issue. So please check you are getting the expected results when enabling the current switcher in Product templates or while calling it using PHP code. Please check the following docs for more details.

https://wpml.org/documentation/related-projects/woocommerce-multilingual/multi-currency-support-woocommerce/#adding-a-currency-switcher-to-the-front-end

https://wpml.org/documentation/related-projects/woocommerce-multilingual/multi-currency-support-woocommerce/#currency-switcher-as-php-code

--
Thanks!

Bigul

April 10, 2025 at 1:28 pm #16918836

iliyaI

Hello
It is not working on live website.
both shortcode and php options are working inside elementor and visible but on the live website they are not visible

Please could you advise currency switchers that have integration with WPML?

April 13, 2025 at 1:07 pm #16926439

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

I'm Osama from WPML forums support. I'll be glad to help you today.

First of all, sorry for the late reply; it was due to a higher workload.

I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please back up your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

April 16, 2025 at 1:54 pm #16939293

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the access details. I checked the issue and found that you selected only one currency for each language, so the switcher didn't show.

The switcher appeared correctly after selecting more than one currency. Please check if the header currency switcher works correctly.

Best regards,
Osama

April 16, 2025 at 4:39 pm #16940368

iliyaI

Hello Osama,

That was a very silly mistake, I didn't notice that
Thank you very much for helping!