Home›Support›English Support›[Resolved] When I clic on a new page the language changes automatically to english
[Resolved] When I clic on a new page the language changes automatically to english
This thread is resolved. Here is a description of the problem and solution.
Problem: The client reported that while navigating their multilingual website, which includes English, French, and Arabic, the site automatically switched to English when clicking on links, despite French being set as the default language. Solution: We identified that the main menu did not have translations set up for each language, causing the site to revert to English. We recommended creating separate menus for each language and provided guidance on how to do this with a link to our documentation: Translating Menus. Additionally, we accessed the site's backend and assigned the correct French menu in the Elementor settings, which resolved the issue.
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 the problem persists, please 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.
Background of the issue:
I installed WPML and deployed a site with 3 languages (English, French, and Arabic) while setting French as the default. The site is currently under development.
Symptoms:
When I navigate on the website in a language other than English, it switches automatically to English.
Questions:
How can I prevent the website from automatically switching to English when navigating in other languages?
The issue is not when I switch languages, here's the scenario:
You go on french for example, on the home page, and you want to check other pages in french, you clic on any link, it will show you that page but in english.
Same for arabic, whatever link you clic you'll be redirected to english.
I tried clearing the cach, using another browser, and 2 other people tried it.
I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.
Our Debugging Procedures
I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.
- Please make a backup of the site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box.
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.
PS: This is just a note that I won't work over the weekend. I will get back to work on Monday. (I'm mentioning this in case a reply comes this weekend.)
The issue here is that there is no translation for the main menu: hidden link
The main menu is set to be used in Elementor, so it is always using the one from EN, that is why all the URLs in the menu are sending to the EN version (/en).
Also, the main menu was created from the English backend, while the default language is French (not sure why this happened - maybe EN was the main default language initially and this changed afterward, I don't know).
I still need help,
I added the different menus, but it didn't work right, so I did the menu synchronization, but it messed it even more, now it displays the wrong menu language...
I'm sorry, how can I revert it?
Thank you very much 🙂 you've been more than helpful 🙂
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.