Skip Navigation

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.

This topic contains 35 replies, has 2 voices.

Last updated by colasB 10 months ago.

Assisted by: Marsel Nikolli.

Author Posts
February 7, 2024 at 8:59 am #15275234

colasB

Hi,

We need the spanish navigation header to display only the correct menus and sub-menus when the spanish language is selected, like in our main page: hidden link

Today, when we switch to the spanish language all menus, sub-menus and pages are displayed in the navigation header (cf.)

We translated the navigation header from EN to SP normally in WPML, as we did from EN to FR (which works perfectly) but it still not display the navigation header properly in SP.

We had to hide the spanish language because of this issue but feel free to unhide it if you want to do some testing.

Could you please help us?

Thanks in advance!

Untitled design.png
February 7, 2024 at 1:41 pm #15276842

Marsel Nikolli

Hi,

Thank you for contacting WPML Support, I will be happy to help you.

I noticed from the debug info that you provided that you are using WPML v4.6.6, I would suggest you update to the latest version v4.6.9 and other WPML addons plugins if needed.

After, please check if the issue persists and let me know.

---

If the issue persists after the update/s would it be possible to have access to your site, possibly to a staging site so we can further troubleshoot?

Looking forward to your reply,
Marsel

February 7, 2024 at 6:17 pm #15278501

colasB

Hey,

Thanks for the feedback.

I tried to update but it seems that I have to wait 5 hours for the auto-update (cf.) and when I disable the auto-update to do the update manually the update fails as well... (cf.)

Screen Shot 2024-02-07 at 7.14.48 PM.png
Screen Shot 2024-02-07 at 7.17.13 PM.png
February 8, 2024 at 8:34 am #15280075

Marsel Nikolli

Hi,

Thank you for the update.

Could you please try following the steps below:

Please login to your WPML account (https://wpml.org/account/sites/):

- Delete the existing site key
- Generate a new key
- Go to your website's WP-Admin -> Plugins -> Add New -> Commercial tab
- Click on the “Unregister WPML from this site” button
- Register with the new site key and refresh the page

After, try updating the WPML plugins again.

For more details, you can refer to our documentation: https://wpml.org/faq/install-wpml/

Let me know how it goes,
Marsel

February 8, 2024 at 6:49 pm #15282962

colasB

Hi,

Thanks for your answer.

Could you please confirm that none of the process of these steps will delete anything that we translated and built through WPML? And that we will be able to restore every single action we made on WPML?

Sorry but it would be a lot of time and money wasted so we have to be sure.

Best

February 9, 2024 at 8:11 am #15284266

Marsel Nikolli

Hi,

The instructions I sent shouldn't affect any actual WPML configuration or translation you have done in your site.

Anyway, for you to be the safest possible, please make a full backup of your site (database and files).

Let me know how it goes,
Marsel

February 9, 2024 at 2:13 pm #15286376

colasB

Hi,

I followed your step but I am still unable to update WPML. (cf.)

It seems that WPML plugin cannot connect to wpml.org
WPML needs to connect to its server to check for new releases and security updates. Something in the network or security settings is preventing this.

How am I supposed to allow outgoing communication to wpml.org?

Thanks

Screen Shot 2024-02-09 at 3.12.03 PM.png
February 9, 2024 at 2:29 pm #15286535

Marsel Nikolli

HI,

To remove the “the WPML plugin cannot connect to wpml.org” notification:

- go to WP Dashboard Menu -> Updates.
- Press the "Check again" link.

Now please go to the Plugins page and see if that notification still exists or not.

Please let me know if this resolves your issue or if you need further assistance with this issue.

February 9, 2024 at 2:45 pm #15286578

colasB

It worked! WPML is updated, thanks.

I confirm the initial issue on the spanish menu persists: hidden link

Best

February 9, 2024 at 2:57 pm #15286636

Marsel Nikolli

Happy to hear that it worked.

I am not able to check the menu in Spanish, I don't see the Spanish language on the language switcher as well?

Could you please tell me how are you adding the menu to the website (is it a WordPress default menu or are you using any page builders/theme options)?

February 9, 2024 at 3:11 pm #15286664

colasB

Sorry I removed it. You should be able to see it now.

We are using a theme option we subscribed too, which worked really well for the Navigation Header translation from EN to FR

February 9, 2024 at 3:31 pm #15286854

Marsel Nikolli

In order to investigate this issue and understand it better, I would need a temporary access to your website, access to your site's WP-admin (you can create an administrator user using any email address you prefer).

Please make a full backup of your site (files and database) and confirm it in your next reply.

Your next reply is set to private for you to provide the username and password details.

Thanks,
Marsel

February 12, 2024 at 9:53 am #15291954

Marsel Nikolli

Hi,

thank you for providing the login details, but the user you provided needs to be an administrator user level in order to let me check the WPML configuration on the website.

Could you please change the user level from WP-Admin -> Users?

Looking forward to your reply,
Marsel

February 12, 2024 at 3:17 pm #15293931

colasB

Hi,

Done!

Thanks

February 12, 2024 at 10:52 pm #15295111

Marsel Nikolli

Hi,

thank you for upgrading the user, I was able to login and check further.

- Could you please tell me how are you translating the menu, as I notice the theme is a FSE theme?
- In Spanish I noticed that the image/banner below the menu has a different with.

Please check our documentation for more details on how to translate FSE themes:
https://wpml.org/documentation/getting-started-guide/translating-content-created-using-gutenberg-editor/translating-sites-that-use-full-site-editing/

Looking forward to your reply,
Marsel