[Resolved] translated menu is still not working properly
This thread is resolved. Here is a description of the problem and solution.
Problem: The client reported that the flags in the navigation menu were not synchronizing correctly. When clicking on a flag for another language on various pages, it redirected to a random page in that language instead of the correct translation. Solution: We first suggested checking our documentation on translating menus, which can be found here: https://wpml.org/documentation/getting-started-guide/translating-menus/ Upon further investigation, we discovered that the language switchers function correctly when the footer language switcher is enabled. We asked the client to confirm where the navigation menu language switchers were added, as we were unable to inspect or edit them.
If this solution does not resolve your issue, or if it 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.
Good morning Kor,
Thank you for your last message. We have updated all of these products, and it has slightly improved the situation.
That said, the translation menu is still not working properly. Most pages either link to the wrong translation or simply redirect back to the French homepage.
We really do not know why or when things stopped working, as we had never experienced any real issues before.
I believe there might be a misunderstanding regarding the issue we are currently facing. The problem is that the flags in the navigation menu are no longer synchronizing correctly. When visiting most pages and clicking on the flag for another language, it redirects to a random page in that language instead of the correct translation.
As an example, you can test any of the submenu pages under "For Rent" or "For Sale" and try switching the language. You will notice that it redirects you to a random property instead of the equivalent list.
Thanks for your reply. I can see the issue now. You're referring to the language switcher. I will escalate this further to our 2nd Tier Support for further investigation and I will come back to you as quickly as possible.
Thank you for your patience. While preparing the report, I noticed that the language switchers function correctly when the footer language switcher is enabled. You can test it here: hidden link (scroll to the bottom to see the language switcher)
Could you please let me know where the navigation menu language switchers were added? I'm unable to inspect or edit them on my end.
Good morning Kor, thank you for your message.
Indeed the switcher in footer menu seems to work correctly. I added the switcher again the navigation menu and it doesn't work well while the footer one does !!!
You can check it out on this example here:
Good morning Kor,
I just go to the WPML / Languages and edit the Menu Language Switcher.
I just deleted and added the menu, and it's working. However, I noticed that the first page you visit will have the correct translation, but from there on, the link will remain the same as the first page. Could this be a caching issue?
Hello again Kor,
So to fix this issue, I decided to remove the footer and navigation menu switcher and just add a custom floating one to the left side of the website which worked now and it is translating correctly.
We can close this ticket now.