Skip Navigation

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

Problem:
Our menu translation works fine, however we use a top level item as a custom link with the url "#". So when a user click on it, it will drop down to show the menu items under it.

This top menu item is always the same. How can we make it different in different languages?

Solution:
You can translate the menu items with custom links by editing the translated menu in Appearance > Menus and creating the link for the secondary language.

You can also use the String Translation module to translate them as mentioned here: https://wpml.org/documentation/getting-started-guide/translating-menus/#translate-custom-links

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 2 replies, has 2 voices.

Last updated by ritaR-3 1 year, 8 months ago.

Assisted by: Mohamed Sayed.

Author Posts
May 8, 2023 at 4:46 pm #13607595

ritaR-3

Our menu translation works fine, however we use a top level item as a custom link with the url "#". So when a user click on it, it will drop down to show the menu items under it.

This top menu item is always the same. How can we make it different in different languages?

It looks like this in the menu editor:
hidden link

And it looks like this in the frontend:
hidden link

Is there a solution for this?

Thank you,
Tibor

May 8, 2023 at 6:11 pm #13608111

Mohamed Sayed

Hi Tibor,
Thanks for contacting WPML support, I will be glad to help you.

You can translate the menu items with custom links by editing the translated menu in Appearance > Menus and creating the link for the secondary language. I've created a recording that shows how you can achieve this here: hidden link

You can also use the String Translation module to translate them as mentioned here: https://wpml.org/documentation/getting-started-guide/translating-menus/#translate-custom-links

Let me know please if that helps.

Regards,
Mohamed

May 9, 2023 at 9:27 am #13611805

ritaR-3

Thank you so much for your help!
All the best,
Tibor