This thread is resolved. Here is a description of the problem and solution.
Problem:
You are trying to translate anchor points in links using WPML, but find that while the main part of the URL translates correctly, the anchor part does not. For example, translating https://www.mysite.org/link/#anchor to https://www.mysite.org/es/link-es/#anchor-translated does not work for the anchor segment.
Solution:
We recommend adding a custom XML configuration to your WPML settings to enable translation of the anchor parts of links. Here is the XML configuration you should add:
<wpml-config> <elementor-widgets> <widget name="text-editor"> <fields> <field>editor</field> </fields> </widget> <widget name="button"> <fields> <field>text</field> <field>link>url</field> </fields> </widget> <widget name="menu-anchor"> <fields> <field>anchor</field> </fields> </widget> </elementor-widgets> </wpml-config>
After adding this configuration, use the Advanced Translation Editor to search for "http" and translate the link as needed.
Please note that this solution might be outdated or not applicable to your specific case. If this solution does not resolve your issue, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, 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.