This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing issues where enabling the language switcher causes some links to stop working and affects the dropdown theme of the page menu sections, it might be due to the menu configuration in your secondary language not matching the primary language. Solution: We recommend following these steps to resolve the issue: 1. Go to Appearance → Menus 2. Switch to the menu of the secondary language 3. Apply the same Mega Menu options/configuration as you have in the main (original) menu 4. Save the menu
Please note that this solution might be irrelevant if it's outdated or not applicable 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 issue persists, please open a new support ticket at WPML support forum for further assistance.
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 am trying to fix an issue on my website hidden link where enabling the language switcher causes some links to stop working and affects the dropdown theme of the page menu sections.
Symptoms:
When the language switcher is enabled, some links stop working and the dropdown theme of the page menu sections is affected.
Questions:
How can I fix the issue with links not working when the language switcher is enabled?
What steps should I take to resolve the dropdown theme issue in the page menu sections?
Please check both languages of the page - when clicking on the home sections, the menu does not load.
As you can see in the screenshot, when you click on the black menu on the first page, an error appears.
New threads created by Andrey and linked to this one are listed below:
Inspecting the menu on the translated page, I did not see the submenu render on page load. If you disable the language switcher, does the issue disappear? If so, try adding the language switcher again from WPML → Languages → Menu language switcher as a test.
Have you attempted to synchronize the menu via WPML → WP Menus Sync?
yes, that's the problem. when i disable the switcher, the page works, but only in one language - english.adding the language switcher again from WPML → Languages → Menu language switcher as a test - i cann't find this option.
Have you attempted to synchronize the menu via WPML → WP Menus Sync? - Yes.
Please find attached some screen from the WPML Languages settings, Can you help me understand if everything is correct?
yes, that's the problem. when i disable the switcher, the page works, but only in one language - english.adding the language switcher again from WPML → Languages → Menu language switcher as a test - i cann't find this option.
Just to make sure we’re addressing the correct issue, could you please confirm what exactly happens?
Are you referring to:
1. The menu dropdown not working on the secondary language when the language switcher is enabled?
or
2. A 404 error on the product category page in the secondary language?
These are two different issues with different causes, so your confirmation will help me guide you properly.
I need to request temporary access (wp-admin and FTP) to your site—preferably to a test site where the problem has been replicated if possible—in order to be of better help. When you log in to leave your next reply, you will find the needed fields below the comment area. The information you will enter is private, meaning only you and I can see and access it.
I have removed the access credentials you shared in your previous comment.
For security reasons, please make sure to change them as soon as possible.
The following reply is set as private.
When you log in to leave your next response, you’ll find the required fields below the comment area.
Please add the access credentials there securely.