Skip Navigation

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

Last updated by danielK-166 1 year, 6 months ago.

Assisted by: Nigel.

Author Posts
May 11, 2023 at 10:36 am #13629215

danielK-166

I am about to translate the Header menu. Unfortunately, the Anchor links and linked section IDs doesn't work. The issue is on the whole site:

hidden link

May 12, 2023 at 9:48 am #13635889

Nigel
Supporter

Timezone: Europe/Madrid (GMT+01:00)

Hi there

Sorry it has taken so long for you to receive a reply, we like to do better but the queue has been busy.

I visited your site and clicked some of the menu links, where I notice that they scroll to anchor links lower down the page.

But when I switch to English and check the same, I get the same results.

You fixed this yourself while waiting, or am I missing something?

May 15, 2023 at 12:27 pm #13647853

danielK-166

Hi, thank you for your reply. I fixed the functionality, but the anchor ID's are still in polish, regardless of which language. How can they be translated?

May 15, 2023 at 1:21 pm #13648371

Nigel
Supporter

Timezone: Europe/Madrid (GMT+01:00)

Element IDs are not something that are ordinarily available for translation.

You would need to complete your translation as normal, and then manually edit the translated post/page (in your case, with Elementor) and change the ID that way.

So in the back end from the list of posts in the default language (Polish) click the link to edit the post (not with Elementor). Then use the language switcher in the toolbar to switch to the desired language. A notice will warn you against editing the post, but you will need to continue. Then click the link to edit in Elementor, and make the changes to the IDs are required.

You will need to update your menus to use the different anchor links, as required.

https://wpml.org/documentation/getting-started-guide/translating-menus/#option-2-translating-menus-manually