Skip to content Skip to sidebar

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

Problem:
The client's website uses Romanian as the default language and English as the secondary language. They are experiencing an issue where, after using the language switcher, the button in the main menu changes its name correctly from Romanian to English, but the link still opens the page in Romanian instead of English.
Solution:
We recommend the following steps to address this issue:
1. Ensure you have a full backup of your website.
2. Navigate to WPML > Settings and click on Translate Link Targets. Test the button to see if the issue is resolved.
3. If the problem persists, go to WPML > String Translation and search for the specific part of the link (e.g., "charmhotel.ro/rezervari") and translate it.
Additionally, please provide your debug information to help us better understand your website settings. You can find instructions on how to do this here: https://wpml.org/faq/provide-debug-information-faster-support/

If these steps do not resolve your issue, or if the solution seems outdated or irrelevant to your case, we highly 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 further assistance is needed, please open a new support ticket at WPML support forum.

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 1 reply, has 2 voices.

Last updated by Lucas Vidal de Andrade 1 year ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
July 15, 2024 at 12:49 pm #15954455

codrutI

Background of the issue:
My website default language is Romanian and English is the secondary language. In my WordPress theme (Kadence), I have a button in the main menu. By clicking the button, a user is redirected to a specific page. I am using WPML for language switching.

Symptoms:
After I change the site language using the language switcher, the button name changes correctly from Romanian to English, but the link opens the page in the site default language (Romanian) and not in the English version.

Questions:
How do I properly redirect the action of the button to the correct page in the selected language?

July 15, 2024 at 1:50 pm #15954841

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

Thank you for sharing the details. Please send me your debug information, so I can better understand your website settings. Here's how to do that:
https://wpml.org/faq/provide-debug-information-faster-support/#:~:text=You%20can%20provide%20your%20debug,versions%20with%20the%20support%20team.

As for the issue itself. Please make sure that your menu has been fully translated and follow these steps:

1. Make a full website backup;
2. Go to WPML > Settings and click on "Translate Link Targets". Test the button again;
3. If that does not solve it, please go to WPML > String Translation and search for part of the link, like "charmhotel.ro/rezervari" and translate it;

Let me know how it goes. Please don't forget to share your debug info, in case you still need assistance.

July 15, 2024 at 2:12 pm #15954897

codrutI

Thank you Lucas!!!

The problem was solved by following your 1,2,3 steps. Actually, step 3 was efective.

Best regards!!!