This thread is resolved. Here is a description of the problem and solution.
Problem: The client is developing a website and wants all hyperlinks to automatically change to the corresponding language after the site is fully translated using WPML. However, the link https://metalstek.com/deposition-materials/evaporation-sources/ is not being translated by WPML. The client previously resolved an issue with the Elementor image link module by adding custom XML configuration, but now faces a new issue where manually changed Elementor container links are not translatable. Solution: We advised the client to ensure that all page translations are completed, as incomplete translations can prevent the automatic translation of links. Once translations are 100% complete, WPML should automatically handle the translation of internal links. We also recommended disabling all caching on the site to avoid issues with translations not appearing. Additionally, we provided a guide on translating links (https://wpml.org/faq/how-to-translate-links/) and highlighted a known issue with translating internal links from some elements.
If this solution does not resolve your issue or seems outdated, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. We highly recommend opening a new support ticket if the problem persists. For further assistance, you can contact us through the WPML support forum.
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.
Background of the issue:
I am developing a website and want all hyperlinks to automatically change to the corresponding language after the site is fully translated using WPML.
Symptoms:
The link hidden link is not being translated by WPML.
I previously contacted your team regarding an issue with the Elementor image link module not being translatable. After adding the following code to the WPML custom XML configuration:
<wpml-config>
<elementor-widgets>
<widget name="image">
<fields>
<field>link>url</field>
<field>caption</field>
</fields>
</widget>
</elementor-widgets>
</wpml-config>
the image link became translatable and now appears correctly in the WPML translation editor, so that issue has been resolved.
However, I am now facing a new issue on this page: hidden link. The modules on this page were built using Elementor containers, and I manually changed the container’s <div> tag to an <a> tag. Unfortunately, WPML still doesn’t support manual translation of the link in this setup.
Therefore, I need your help to provide a piece of XML code that I can insert into the configuration so I can translate the link used in this module.
Sure, I'll help.
Please give me access to your site and explain to me exactly which model is the one you need to add translation support to.
If you need further help with this, please share the access details to your site with me. I'm enabling a private message for the following reply.
Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ **IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--
I can see that some of the links do not work, but others work. I can also see that the page's translations are in progress. You must complete the translations so that they will be 100% completed, and the pencil icon will show. Please see the video I recorded for you.
hidden link
Please ensure that you disable all caching on your site.
What I’m trying to say is that I understand this page needs to be translated, but the problem now is that I can't find the corresponding translation link in WPML. For example, on the WPML editor page for the "Evaporation Source" page, I can’t find any editable links for other languages. How should I proceed with the translation?
I've completed the French translation and can now see that all the internal links are pointing to the translated French pages. If translations exist, WPML will automatically create the links, and you don't need to take any action. Please read our guide about translating links: https://wpml.org/faq/how-to-translate-links/. There is a known issue with translating internal links from some elements. It is mentioned in the guide above.
If WPML translates the internal links correctly, do you still need to translate them?