Home›Support›English Support›[Resolved] Links within text widgets did not convert during the auto translate process
[Resolved] Links within text widgets did not convert during the auto translate process
This thread is resolved. Here is a description of the problem and solution.
Problem: You are developing a site using Elementor and WPML, with everything set to auto-translate. However, the links within the text widgets of Elementor do not correctly point to the translated French pages but remain linked to the English versions. Solution: First, ensure that the page translation is set to review, indicated by the eye icon next to the French language. When editing the translation, check that the strings supposed to be links are highlighted correctly with the "a" and "strong" tags. If they are not, manually adjust them to ensure they are highlighted as links. Completing this step should correct the link direction in the translated version. For detailed guidance on safe HTML editing in translations, please visit our documentation: Advanced Translation Editor - Safe HTML Editing.
If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. Additionally, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please contact our support team at 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 site using Elementor and WPML. I have set everything to auto translate. I have also used the string translator for several items.
Symptoms:
The links within the text widgets of Elementor do not point to the correct version. They all still point to the English pages instead of the French pages.
Questions:
Is there a way to change the links within text widgets automatically now that the auto translate process has completed?
Please check if this is the case and apply the suggested workaround.
If that's not the case, please try the Translate Link Targets option in WPML -> Settings. Go there, press the 'Scan now and adjust links' button, and wait for the process to complete. Then, please check if it fixes the problem.
I tried the Translate Link Targets and it completed. It said 18 links were changed to point to the translated content. I checked the links I knew had the issue but those unfortunately were not translated. Is there something else i can try?
Can you please let me access your site and tell me which page to edit and which Elementor widgets to check?
Screenshots will be much valued.
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.--
Please note that my weekend is Friday-Saturday, and I'll be able to continue to check this issue and help you on Sunday.
There was one incorrect url in my previous reply, here's the correct one.
hidden link
Also, I can make all these changes manually, I was just hoping to do it with an automated WPML feature. Let me know if you'd rather I make the manual edits.
Important!
Our forum is public. It is not a private discussion/thread only between you and us. So please refrain from posting sensitive information in public replies. I have removed the login details from the previous reply. For your site's safety, please change those details. I'm not allowed to use the access details as you shared them. You must share them in a private reply. This way, you also consent that we will access your site and that you have a backup. I'm enabling a private message for the next reply.
If correcting this issue manually is doable, please proceed with this option.
However, if you want to avoid this same problem in the future, please let us check this issue on your site.
Let's please take the "Lead" page as an example. It is set to review the translation. I can tell it by the eye icon next to the French language. Please see the attached screenshot need-review.jpg. So, when I edited the translation, I could see that the string that was supposed to be a link was not highlighted with the correct "a" and "strong" markers. Please see the attached screenshot not-highlighted.jpg. It worked When I marked the links and completed the translation. Please see the attached screenshots not-highlighted.jpg and links-ok.jpg.