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
- 12:00 – 16:00 10:00 – 14:00 10:00 – 14:00 9:00 – 13:00 9:00 – 13:00 -
- 17:00 – 21:00 15:00 – 19:00 15:00 – 19:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Bucharest (GMT+02:00)

Tagged: 

This topic contains 2 replies, has 0 voices.

Last updated by Mihai Apetrei 9 minutes ago.

Assisted by: Mihai Apetrei.

Author Posts
January 8, 2025 at 1:49 pm #16573767

narekK

Background of the issue:
I am trying to use the WPML plugin on my website hidden link to switch languages in the header menu.

Symptoms:
The header menu language switcher always shows one language, despite the page being loaded for the selected language.

Questions:

January 8, 2025 at 4:32 pm #16574550

Mihai Apetrei
Supporter

Languages: English (English )

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

Hi there.

From what I can see, you are using the "dropdown" styling for the menu language switcher, so as you can see in my screenshot, you first need to hover your mouse over the language switcher to see all the language options.

I am unsure if this is caused by some settings from your current theme or because of settings added inside the WPML settings.

You can try to go to WPML > Languages > find the "menu language switcher" section > click the pencil edit icon > and from there, set the language switcher NOT to be a dropdown but to display all the flags on the same line.

Please let me know how that goes and if it resolves your issue.

I will be waiting for your response.

Mihai Apetrei

Screenshot 2025-01-08 at 18.29.37.png
January 9, 2025 at 8:43 am #16576575

narekK

That's the point, check the screenshots.

As I said before the functionality doesn't work as it must:

Screenshot 2: you can see I've set another view model, I've cleared all cache but nothing changed

Screenshot 3: Try to change the language, you'll see that after reloading the menu bar and the flag doesn't change

Screenshot_3.jpg
Screenshot_2.jpg
January 10, 2025 at 6:52 am #16580363

Mihai Apetrei
Supporter

Languages: English (English )

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

Hi there, and thank you for the update.

There's a chance that the styling comes from your current theme or one of the active plugins. I will also look into the actual translation issue (I will create a separate ticket for that so that we handle only one unique issue per ticket).

I want to take a closer look. I would like to kindly request temporary access (wp-admin and FTP) to your site so that I can thoroughly examine the issue. The necessary fields can be found below the comment area. When you log in to leave your next reply, please be assured that the information you enter is private and will only be visible to you and me.

Our Debugging Procedures

I will thoroughly review various settings in the backend to determine if the issue can be resolved. While I will not make changes that affect the live site, it is still advisable to back up the site before granting us access. Should further debugging be necessary, I will create a duplicate and work in a separate, local development environment to avoid any impact on the live site.

Privacy and Security Policy

We have stringent policies in place regarding privacy and access to your information. For more details, please refer to: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

IMPORTANT

- Prior to granting us access, please ensure that the site files and database are backed up.

If you do not see the wp-admin/FTP fields, please refrain from posting your website details as they will be made public. Kindly request me to enable the private box if you do not see the required wp-admin/FTP fields. You can find the private box by following this link: hidden link

I will await your response.

January 14, 2025 at 11:56 pm #16595183

Mihai Apetrei
Supporter

Languages: English (English )

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

Hi, and thank you for the credentials.

I can confirm that I was able to log in successfully.

I am spending more time on this and will get back to you as soon as I have more feedback.

I will leave the ticket assigned to myself for now.

January 17, 2025 at 11:21 am #16605674

narekK

Hello, do you have any news?

January 17, 2025 at 4:39 pm #16607574

Mihai Apetrei
Supporter

Languages: English (English )

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

Hi there, and thank you for your outstanding patience.

There must have been some server-related caching issues because the language switcher format now shows correctly, where flags display next to each other instead of the dropdown format.

Regarding the issue with the menu, I am still investigating that one, that's why I did not get back to you yet because I think the issue might be related to how the menu is being loaded.

I will get back to you as soon as I have updates about that issue, too.

January 17, 2025 at 4:44 pm #16607595

Mihai Apetrei
Supporter

Languages: English (English )

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

I have come to a conclusion regarding the issue with the menu not being translated into other languages.

From my observations (hidden link), it appears that the header template has not yet been translated. This is likely why we see the "+" icons instead of a pencil-edit icon.

You can click the + icon to translate the header template or follow the steps mentioned here:
https://wpml.org/documentation/plugins-compatibility/elementor/#translating-elementor-templates

Could you please create a complete backup of the website and then proceed to translate the Elementor header template? Let me know if this resolves the issue for you.

Please let me know if that resolves the issue.

January 18, 2025 at 10:52 am #16608941

narekK

You're right. After translating the header, the issue was resolved. The last question concerns the fact that any changes in the WPML—Languages—Menu language switcher don't affect the header, even after clearing everything from the server cache. If you could help with that part, too, that would be great!

I really appreciate any help you can provide.

January 19, 2025 at 10:11 pm #16611357

Mihai Apetrei
Supporter

Languages: English (English )

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

Hello, and welcome back!

I’m glad to hear about your progress.

The language switcher may be loaded differently and might not be sourced directly from WPML. I will take a closer look and see if I can resolve the issue.

I’ll get back to you with updates as soon as I have any.