Home›Support›English Support›[Resolved] after connecting a new domain the language switcher either moved or disappeared
[Resolved] after connecting a new domain the language switcher either moved or disappeared
This thread is resolved. Here is a description of the problem and solution.
Problem: The client reported that the order of the menu items had changed unexpectedly, with the language switcher moving from the last to the second position in the menu. Additionally, the client could only select menus from the current main language, despite the display showing a menu from a previously set main language. Solution: We recommended the client to adjust the order of the languages by navigating to WPML >> Languages >> Language Switcher Options > Order of languages. This adjustment should help in setting the language switcher back to its desired position at the end of the menu. Furthermore, we suggested that the issue with the menu order might be a temporary glitch and recommended moving the navigation menu around to see if it resolves the issue.
If this solution does not apply to your case, or if it seems outdated, 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. Should the problem persist, please do not hesitate to open a new support ticket with us for further assistance 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:
We have connected a new domain (website.com). Previously, it was website.de with the main language as German and sub-languages as English and French. Now, the main language is English (.com) and sub-languages are .com/de and .com/fr.
Symptoms:
On the German page (that used to be the main page), the language switcher moved to the second place in the ul.
Questions:
Why did the language switcher move to the second place in the ul on the German page?
Thank you for contacting WPML Support. You should be able to change the order of languages from WPML >> Languages >> Language Switcher Options > Order of languages.
Could you give this a try and let me know if it helps?
I was talking about the order of the menu items.
the language switcher used to sit at the end of the menu, now it's second in place.
It is set to last menu item.
From the menus i can also only pick the menus of the now main language.
(though it is still displaying a menu from the previous main page)
Sorry i don't really understand how all these things are connected.
The navigation menu lists shown in your screenshot are created in WP > Appearance > Menus.
Maybe you can check your navigation menus to see if the menus that you're referring to is still there?
If not, I will need to closely examine your website. Therefore, I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.
Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.
Your upcoming reply will be treated with confidentiality and will only be visible to you and me.
✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.
I’ve reviewed the setup and everything appears to be in order. Since English is set as the default language, the 'Menu language switcher' will display menus from this default language. The correct four English menus are showing, as indicated in the attached screenshot.
Could you please clarify what you’re trying to achieve and provide a bit more detail on the issue?"
For the german version, the language switcher sits behind the second menu item.
The switcher used to sit (as set via wpml settings) at the end of the menu.
(the end of the german menu is '14 Gründe für uns').
The first menu item is the only one, that used to have an english translation (now english is the main language, so maybe somehow the switcher 'thinks' that is the only existing page).
also i can no longer assign different german menus to the german page, but idt that is a wpml issue.
I can see the issue now. I regret any inconvenience caused, but to proceed with troubleshooting, I kindly ask for a snapshot of the site. Alternatively, with your permission, I can create one myself. For this purpose, I typically recommend using the free plugin "Duplicator." If you're already familiar with Duplicator (https://wordpress.org/plugins/duplicator/), please skip the following steps and simply send me the archive file you downloaded.
To guide you further, please adhere to these instructions:
1. View the Duplicator instructions video: hidden link
3. If the archive file exceeds 400MB, please use Duplicator's file filters to exclude cache, wp-uploads directory, media, and archive files.
Once you have the archive file ready, kindly share the link with us. You can utilize platforms like Google Drive, Dropbox, or similar for file sharing, as the snapshot file might be large.
Please note that your next reply will be private, visible only to you and me. You can paste the file link there. Rest assured that once the issue is resolved, I will delete the local site.
I cannot find a solution for this and I will escalate this to our 2nd Tier Support for further investigation. I will come back to you once I've feedback.