[Resolved] Elementor Image links are not being translated
This thread is resolved. Here is a description of the problem and solution.
Problem: You are using WordPress with Elementor and WPML, and after updating all plugins and WordPress to the latest versions, you are facing an issue where the links on images in your posts are not being translated, although the links on buttons are. You have tried using the Translate Link Targets function and re-saving the Permalinks page, but the problem persists. Solution: We have identified this issue and have documented it in our errata. Please visit the errata page for more details and the correct XML code to use: https://wpml.org/errata/elementor-image-widget-links-not-translating-correctly/. You should insert/add the XML code in WPML -> Settings -> Custom XML Configuration with the corrected code provided on the errata page, and then update your translations. This should resolve the issue with the image links not being translated.
If this solution does not apply to your case, or if it seems outdated, 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. If the problem persists, please open a new support ticket in our forum for further assistance: 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 using WordPress with Elementor and WPML, and I have updated all plugins and WordPress to the latest versions. I am trying to translate image links in my posts, which contain buttons and images with links. The links on the buttons are translated correctly, but the links on the images are not. I have tried using the Translate Link Targets function and saved the Permalinks page again, but the issue persists. I found an article about this issue for buttons, but it didn't help with the images: https://wpml.org/forums/topic/elementor-button-links-are-not-being-translated/I can see. The issue can be seen on this page: hidden link (access: greener)
Symptoms:
The links on the images are not being translated, while the links on the buttons are translated correctly. The problem persists even after using the Translate Link Targets function and saving the Permalinks page.
Questions:
How can I have the image links translated automatically?
Why are the image links not being translated while the button links are?
I discussed this issue with one of our second-tier supporters. He said we might have a problem with the Elementor WPML configuration file. So he suggested adding this XML code in WPML -> Settings -> Custom XML Configuration.
I added it to your site, but it hasn't corrected the problem for now.
Do you have any caching on your site?
If so, please clear the cache and see if it helps.
Check the English translation because this is the translation I updated. hidden link
In any case, I will test this on a clean WordPress installation and escalate this issue to our second-tier supporters.
Please note that my weekend is Friday-Saturday, and I'll be able to continue to check this issue and help you on Sunday.
No, I do not have any caching active on the site.
I finished all but one page of translations today.
I also found something else regarding Elementor. I have a Vimeo video on the home page. In the English translation there is a field for the Vimeo video link and I was able to put another url here. Unfortunately, this field is not available in the other languages. I have no idea why this is the case.
Many thanks in advance
Birgit
New threads created by Itamar and linked to this one are listed below:
Apparently, the XML code I initially put in WPML -> Settings -> Custom XML Configuration was slightly wrong. I corrected it according to the code on the errata page, and then I updated the translations. Now, the image links are correct.
Can you please confirm this and mark this ticket as resolved?
Regarding the Vimeo video issue, please continue to handle it in a new ticket. In our technical support forum, we try to focus on one issue per ticket. Otherwise, tickets can get cluttered and confusing for both users and supporters. I split this ticket into a new ticket. Please see it here.