Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem: You are trying to ensure that the secondary language navigation menu (ES) links to the corresponding secondary language pages (ES), but all links redirect to the primary language pages (EN). This issue started occurring after the last WPML upgrade and re-registering the site.
Solution: To resolve the navigation menu linking issue, you can use one of two approaches to edit the templates and navigation menus:
1) Using the WPML editor:

  1. Go to WPML -> Translation Management
  2. Select the template
  3. Select "Assign To Translator"
  4. Send to translation
  5. Go to Translation basket
  6. Send it to translation to the first available translator
  7. Go to WPML -> Translations
  8. Click the translate/edit button
  9. Change the translation in the editor and save it

2) Using the WordPress editor:

  1. Go to WPML -> Translation Management
  2. Filter by template and the secondary language
  3. Hover on the translated template name
  4. Click Edit
  5. Change the translation in the WordPress editor and update it

Please use one of these approaches to correct the footer's links.

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. If the issue persists, please open a new support ticket.

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.

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by Osama Mersal 8 months, 4 weeks ago.

Assisted by: Osama Mersal.

Author Posts
June 1, 2024 at 9:58 pm #15695063

steveR-25

Tell us what you are trying to do? Secondary lang nav menu (ES) should link to secondary lang pages (ES), but instead all links go to primary lang pages (EN). Menus and pages were translated successfully EN > ES with WPML, no problem. I have deleted and recreated the menus 5 times, and reset the Nav templates in the theme, but same problem happens every time. This is a new problem since last WPML upgrade and re-registering the site.

Is there any documentation that you are following? Already browsed WPML support and web for solutions; nothing found.

Is there a similar example that we can see? Just check the website -- every nav link has the problem.

What is the link to your site? staging8.travler.org

June 2, 2024 at 9:19 am #15695253

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

I couldn't check the site because it requires access details, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

June 2, 2024 at 3:14 pm #15695721

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the access details. I edited the navigation menu translation to translate the URLs. Please check if they are translated correctly. (hidden link)

To edit the menu's translation, please go to WPML-> Translations and edit the navigation menu's translation.

Best regards,
Osama

June 2, 2024 at 7:20 pm #15695890

steveR-25

Osama, thank you for trying but I still cannot make the translation work correctly, and I do not understand from your reply how to do it.

The words you used in the translation are not quite right, so I tried to change the words but could not find the nav items in WPML > Translations, so instead I selected the various nav menus in WPML > Translation Management, and auto-translated them from that screen. Once again, the URL links are incorrect; the translated words are correct for my region but the ES nav links again point to the EN pages.

I do not understand how to do the nav menu (template part) translation and also ensure the links are correct.

Please tell me the process to modify the nav link text in the secondary language, but also have those links point to the secondary language pages.

June 3, 2024 at 7:03 am #15696420

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for your update. I changed the URLs without changing the text. Please check if the URLs work correctly in Spanish. (hidden link)

Best regards,
Osama

June 4, 2024 at 5:01 pm #15703559

steveR-25

Osama, thank you but we still have 2 problems with this support issue.

1. The header links are now correct, but the footer links (which use the same Nav element as the header) do not work properly; the footer ES nav elements still link to the EN pages.

2. You still did not answer my question to explain clearly how I can make these changes myself, so that I do not need to bother WPML with this issue in the future.

Awaiting your reply...

June 5, 2024 at 7:03 am #15705244

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

There are two approaches to edit templates, navigation menus, and patterns translation.

1) Using WPML editor:

1- Go to WPML-> Translation Management
2- Select the template
3- Select "Assign To Translator"
4- Send to translation
5- Go to Translation basket
6- Send it to translation to the first available translator
7- Go to WPML-> Translations
8- Click the translate/edit button
9- Change the translation in the editor and save it

2) WordPress editor:

1- Go to WPML-> Translation Management
2- Filter by template and the secondary language
3- Hover on the translated template name
4- Click Edit
5- Change the translation in the WordPress editor and update it

Please use one of the above approaches to translate the footer's links.

Best regards,
Osama

June 5, 2024 at 1:50 pm #15707224

steveR-25

Thank you Osama, for your help and patience. You explained clearly the method to edit these template parts. The issue is resolved.