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.
As we already mentioned several times already, we translated the spanish navigation header exactly the same as we did for the french navigation header. Meaning that we used the WPML translations to translate english navigation header from english to spanish.
We know about the width. It was not like this a few days ago, but this width change bug happened from nowhere.
It has now been weeks that we encounter this issue and it is a bad news for our business while we are losing prospects from Spain.
Could you please provide us with a proper support so that the navigation header in spanish displays properly?
I understand the importance of the matter, but please note that we first dealt with the issue you were having on updating the WPML plugins and after we continued with the menu issue.
As for my question on how are you translating the menu, I apologize as maybe I didn't express myself correctly, I was referring to the steps you were following to achieve the translation of the menu.
From your website I was able to further notice from WPML -> Translation Management, that the "Header" template-part seems to not be translated yet in Spanish. Also, there are 3 different Navigation-menu templates, two of which seem to not be translated as well in Spanish. (please check attached images).
- Could you tell me how are you translating the menu step by step (if there is any difference from the instructions on the documentation I shared with you previously)?
- Could you please check the translations I mentioned above and verify that the translations are completed?
We translated as mentioned in the instructions you sent me.
We don't use "Header Navigation" or the other you pointed out, but thanks for pointing that out. To make sure I translated them but the issue still occurs.
Would you have any clue where the issue might come from? Maybe the template?
I noticed that when you go to WPML -> Translation Management -> Jobs there is an error notification showing up 'The Advanced Editor jobs synchronization has failed", and I noticed also some translations that have the status "In Progress" or "Needs Translation".
The issue is escalated to our 2-tier team for further debugging. I will get back to you as soon as I have a feedback from the team.
So far what we escalated initially seems to be an on going issue as we have other tickets being reported with error "The Advanced Editor jobs synchronization has failed", which was happening on your case as well ( and for some reason is not anymore).
I've checked your website and this doesn't seem to be happening anymore, could you please tell me if you did any specific update/change no your website during these days?
Could you please tell me if you did any change/update on this link (hidden link) that is something new) that it started to show the menu like that?
---
Can you tell me which Navigation Template are you using on the website (as I see 3 different ones on WP-Admin -> Appearance -> Editor, as well as on WPML -> Translation Management)?
What do you mean by "it does not seem to be happening anymore"?
I re-checked in spanish and now there isn't any menu at all when switched to the spanish language: hidden link.
Any support on how to implement a spanish Navigation Header?
---
We updated the Single Part template which is related to the blog in order to display our blog articles as needed in Appearences > Editor > Template > Single Post. But from there we did update the english template, which works properly. However the Navigation menu of this specific template seems to not properly synchronise with french language.
---
We use the Navigation Header 2 as the others were default. I assume we could even delete the others for more clarity.
When I escalated the issue, there was an error notification showing on WPML ->Translation Management ->Job (top-right of the page) saying ""The Advanced Editor jobs synchronization has failed"", which seems to not be showing anymore (please can you check and confirm?).
On WPML ->Translation Management ->Job, I've noticed some Template Parts / Pages translations not completed (including Header Template Part Englisht -> Spanish), could you try completing the translations?
---
The issue with the menus is still on going, as you said. I would be best if you remove the Template parts not being in use and complete the translations of the ones you are using (if any translation is pending).
Also, could you make a small change to the menu in the original language (ex: add a temporary link) and try translating it again?
---
Would it be possible to switch to a default WP FSE theme, and check if the issue persists?
I confirm the Error message is still showing (cf.)
I completed the Template part translation of the header from English to Spanish. Now the navigation header menu in spanish displays all pages again: hidden link
---
I confirm that every translations of the template parts in use are completed.
As you asked, I added the sub-menu "Blog" under the menu "AZORA" on the original Header Navigation 2 (English) and it is displayed properly in French once translated.
---
I have already tried this with the Bricksy team - responsable of the template we use - when we first had the issue with the spanish language menu display and the same error occured with another default template.
I can do it again to check this issue with the french blog if really needed, but can you please confirm that it won't have any impact on the website when I turn it back to the template we use now?
I checked further on WP-Admin -> Appearances -> Editor, and under the Navigation, the "Navegación" seems to have all the pages showing (please check attached image).
Could you please delete all the Navigation menus that are not in use and check if the issue persists?
---
If the issue persists I would need access to a staging site to troubleshoot further or a copy of your website in order to troubleshoot locally.