Skip to content Skip to sidebar

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

Problem:
The client was experiencing an issue where the website language reverted back to English when navigating through the menu, despite initially setting it to Dutch.
Solution:
1. We advised the client to ensure that the menu is translated into Dutch. For guidance on translating WordPress menus using WPML, visit Translating Menus.
2. It was necessary to set theme options for each language or translate the template. Helpful documentation for using WPML with specific themes, such as Avada, can be found here:

3. After checking the client's settings, we manually adjusted the translated header to correctly display the Dutch menu. The client can further adjust this, especially if elements like the search icon are misplaced.

Please note that this solution might be outdated or not applicable to your specific case. If the issue persists, we highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If needed, do not hesitate to 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 3 replies, has 1 voice.

Last updated by Dražen 7 months, 3 weeks ago.

Assisted by: Dražen.

Author Posts
March 18, 2025 at 9:10 pm #16832513

fleurK-2

Background of the issue:
I am trying to ensure that my website, hidden link, remains in Dutch when navigating through the menu. Currently, when I switch to Dutch, everything initially appears correct.

Symptoms:
When I click on a menu item, the language reverts back to English instead of staying in Dutch.

Questions:
Why does the menu revert to the default language after clicking on a menu item?
How can I ensure the menu stays in Dutch when navigating?

March 18, 2025 at 9:11 pm #16832537

fleurK-2

I don't know why my Dutch menu doesn't stick

March 18, 2025 at 11:06 pm #16832823

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

One of my colleagues will be handling your ticket. In the meantime, I want to provide you with some helpful information.

You need to translate your menu into the secondary language. Please take a look at the guide on translating WordPress menus using WPML: https://wpml.org/documentation/getting-started-guide/translating-menus/.

March 19, 2025 at 12:14 pm #16835075

fleurK-2

It still hasn't been solved. In this screenshot you can see that the translations are done but they are not showing up. I can go to a translated Dutch page for example:
hidden link
hidden link

But the menu at the top is still English, so every time I change page I have to again switch to Dutch.

Can you please help me?

Screenshot 2025-03-19 at 13.10.07.png
March 19, 2025 at 12:33 pm #16835280

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

probably you have set to use this menu from theme options or some template. You need to set theme options for each language or translate template.

- https://wpml.org/documentation/theme-compatibility/using-wpml-with-the-avada-theme/how-to-set-theme-options-for-languages-in-avada/
- https://wpml.org/documentation/theme-compatibility/using-wpml-with-the-avada-theme/

If you need help, you can share admin access to the next private reply and I will check it out and fix it for you.

Regards,
Drazen

March 19, 2025 at 12:56 pm #16835370

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks, but I would need full admin access.

I can not see full backend now with the current user, so can not check menus, Avada etc.

Regards,
Drazen

March 19, 2025 at 12:59 pm #16835382

fleurK-2

Oh no I am so sorry I forgot to make it an administrator account. I did now so you should be able to acces everything. My appologies.

March 19, 2025 at 1:05 pm #16835393

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks, I have checked and fixed it for you.

I saw in the translated header your menu was not set correctly to the Dutch menu, so I have adjusted it manually.

- hidden link

Now it shows your Dutch menu, which you can also further adjust to your needs, since I see you have the search icon in the wrong position on the NL website, not sure if that is what you wanted.

- hidden link

Regards,
Drazen

March 19, 2025 at 1:16 pm #16835468

fleurK-2

Great I am very happy! When I follow the link it tells me this:

Warning: You are about to edit your translation using the standard WordPress editor but your site is configured to use the WPML Translation Editor. Any edits you do here will be lost if you later open it in the WPML Translation Editor.

Can I just continue? The search is not where it should be for sure.

Thank you for the help!!

March 19, 2025 at 1:22 pm #16835475

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

sure, you can continue with this small change, just do not make any other major changes like this.

I assume first time, it did not assign the correct menu, since it did not exist at the time of translating the header.

You are welcome, kind regards.

Dražen