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.

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by gustavoF-11 1 year, 2 months ago.

Assisted by: Bobby.

Author Posts
October 17, 2023 at 6:39 pm #14597269

gustavoF-11

Tell us what you are trying to do?

After translation of all content, the anchor links in main menu are not working, even though they were translated. I checked both the CSS ID and link in menus. Everything looks good but not working.

Is there any documentation that you are following?
https://wpml.org/forums/topic/how-to-manage-anchor-links-and-section-ids-with-elementor/

For instance:

Original working good:
hidden link

Translated not working:
hidden link

Captura de pantalla 2023-10-17 a las 20.36.43.png
October 19, 2023 at 1:00 am #14609411

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hello,

if possible, please test using an incognito window and let me know your results.

When I test this it is working as expected for me.

Screen Shot 2023-10-18 at 5.59.05 PM.png
October 19, 2023 at 4:28 am #14610211

gustavoF-11

Hi Bobby,
Yes indeed the link takes you to the proper anchor link. But when you click that subitem from the given menu it doesn't. Try this:

menu -> what we do
subitem -> training

October 19, 2023 at 7:50 pm #14619057

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

What are your results if instead, you add a separate menu item that is not in the dropdown with the anchor tag?

Also, try with the anchor tag in all lowercase, please and let me know your results.

October 19, 2023 at 8:08 pm #14619147

gustavoF-11

The problem was that when translating all content through wpml automatic translations, some CSS ID and anchor links from submenu items, were translated with first letter in capital.

The solution was to set all anchor tags in lowercase.

Thanks Bobby, for yo