WPML and section ID anchors

I’m starting to implement translations to a 2nd language on a site and there are some instances where I am using section ID’s as anchor links. For example, on THIS page I have a ‘Contact Us’ button that just links to the last section on the same page using /#contact as the link. This works great for the default language, but since WPML is adding ‘?lang=es’ to the end of each URL it ruins how the anchor link works… How do I get these anchor links to work along with the way that the slugs are modified by WPML?

Thanks

Hi @threeoten,

Thank you for writing in, but I can’t replicate the issue. The button Contact Us actually scroll to the designated section regardless if the page is in English or Español.



Please clarify how we can replicate the issue.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.