Home›Support›English Support›[Resolved] Header menu display all pages in the top menu when Spanish language selected
[Resolved] Header menu display all pages in the top menu when Spanish language selected
This thread is resolved. Here is a description of the problem and solution.
Problem: The client needed the Spanish navigation header to display only the correct menus and sub-menus when the Spanish language was selected. They had translated the navigation header from English to Spanish using WPML, but it was not displaying properly. Also, they encountered issues updating WPML and connecting to wpml.org.
Solution: 1) We recommended updating WPML to the latest version. To resolve the update issues, we advised: - Deleting the existing site key from the WPML account. - Generating a new key. - Unregistering and re-registering WPML on the site with the new key. 2) For the navigation menu issue, we suggested: - Checking if the "Header" template-part and Navigation-menu templates were translated into Spanish. - Completing any pending translations. - Removing any unused Navigation menus. - Ensuring the correct Navigation Menu is set for each page template in all languages.
We also provided a video tutorial to assist with setting the correct Navigation Menu for the templates in use.
The issue was resolved after assigning the proper Navigation menu to the "Single Post" template.
If the solution provided here is not relevant due to being outdated or not applicable to your case, we recommend opening a new support ticket. We also 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 contact us on the 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.
Thank you! The header navigation in use for the spanish language is "Menu": I updated it and changes are reflected.
Do you know how to use the header navigation 2 for all languages so that we do not have to update each navigation header menu individually?
--
Regarding the issue on the french blog articles, could it be the same issue? Maybe another header navigation menu template is taking the lead on the one that should be in used, which in Single Part template?
Also we are experiencing those critical header navigation issues since a few weesd now and very likely lost a few spanish customers and parterships in the process, would you please mind make the request to grant us some free WMPL credits to support us in the spanish translation?
On the website you have multiple Navigation Menus (as we already pointed out before), for which I am not sure why or how they are created, and if they are all being used on the website (maybe on any specific page you use one and on others you use another Navigation Menu).
I think that the issue on Spanish and French are related to a incorrect Navigation Menu being set for the respective pages where the issue was happening (or for the whole pages of the language).
I would suggest you check the theme documentation on how the menus are created and set, and which menus the theme have by default and how they are managed.
* As a next check I would suggest you check the Navigation Menus and delete the ones you are not using. After, on each page template set the one that you are using.
Note: Please make a full backup of your website before trying the suggestion above, or better try checking on a staging site.
I'll check and see what can be done about the credits.
We never created several menus for each language because the idea has always been to have a single header navigation template translated for all languages - simpler and more efficient. So the assumptions for both the template provider's support and wordpress support is that it comes from WPML.
Now, thanks to your yesterday's answer, we know that the "Menu" template is used for the spanish language. I don't know why or how but at least we identified this. Thanks again for that.
My questions now are:
How to associate the Header navigation 2 (applied for english and french languages) to the spanish language?
How to identify - as we did yesterday for the Menu in spanish - which navigation menu is set up for the french blog articles? How to associate the navigation menu setup for the english blog articles (hidden link) with the french blog articles (hidden link)?
If we would need to change from WPML to another translation plugin, where could we find the documentation about it?
My assumption is that maybe there might have been Navigation Menu created by default from the theme on different templates which during the translations got mixed somehow.
If you check the video here: hidden link you'll see that by switching to each language the Navigation Menus are different (not all of them).
Now I would suggest you follow these steps:
- set which Navigation Menu would be used in the default language ( I think "Menu" is the one that exists in all languages, you can go for that one)
- after go to WP-Admin -> Appearances -> Editor, and select the template being used for the page you are having issues with the menu
- Further, check the steps on this example of "Single Posts" template: hidden link)
* The video above was related to the template being used for this page: hidden link the menu should be set to the right one.
The same steps might need to be followed for the other pages that you are having issues.
As I mentioned before, I would suggest you remove the menus that you are not using and keep only one (as you mentioned on your previous reply, that would be simpler and more efficient).
After, check all the templates that you are using on the website that the right Navigation Menu is set for them, you might need to check them in all the languages by switching language on the wp-admin top bar.
---
Related to the need to change from WPML to another translation plugin, we don't have such documentation as that process would rely on the plugin you would be switching to.