Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing an issue where the Elementor Image Widget's Custom URL in a saved template does not open the correct language versions of the linked page, defaulting instead to English. This problem occurs even though the French translation of the template is used on the French version of the Home page.
Solution:
We recommend adding specific XML configuration to ensure that Elementor widgets translate URLs correctly. Here's how you can do it:

<wpml-config><br />  <elementor-widgets><br />    <widget name="image"><br />      <fields><br />        <field>link>url</field><br />      </fields><br />    </widget><br />  </elementor-widgets><br /></wpml-config>

After adding this code in WPML > Settings > XML Configuration, follow these steps:
1. Navigate to Dashboard > Pages and open the edit screen of the original page.
2. Make a minor edit, such as adding a space, and save.
3. Update the translation by editing it again and ensuring it is saved as 100% translated.

If this solution does not resolve your issue, or if it seems outdated, 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.

Tagged: 

This topic contains 4 replies, has 0 voices.

Last updated by chulalakB 3 weeks, 5 days ago.

Assisted by: Christopher Amirian.

Author Posts
April 24, 2025 at 4:00 am #16962369

chulalakB

Background of the issue:
I am trying to have Elementor Image Widget's Link > Custom URL in an Elementor Saved Template open the correct language versions of the linked page. Currently, it only opens the default EN language. I found a similar issue regarding Elementor images and alt text and replied to that thread: https://wpml.org/errata/elementor-image-widget-translated-images-display-the-original-alt-text/. The setup includes an Elementor Saved Template in the default language (EN) with Images + Custom URL linked to EN pages. The FR translation of this template has been added, and the EN template is added to the Home page (EN) via Elementor's Template Widget. The Home page also has an FR translation.

Please check the 5 vertical images in Créations section of the FR Home page.

Symptoms:
The images in the Home page FR language are linked to the EN version of the pages. The image captions are showing the correct FR captions in the Home page in EN and FR languages.

Questions:
Why is the FR Home page still getting image links from the EN Template?
Is the template ID not translated, causing the French version of the page to reference the English template?

April 24, 2025 at 7:10 am #16962733

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

Thank you for the details. I have two suggestions to see if it will help.

1. Translate the link by searching in the Advanced Translation Editor

- Go to WPML > Translation Management
- Find the template in question and send it for translation.
- Go to WPML > Translations and take the translation to go to the Advanced translation editor.
- From the top right section, search for the links in question. If you find it, please translate them. For more information:

https://wpml.org/faq/how-to-translate-links/

2. Manually change the links in the translation language in Elementor (Workaround)

This is not generally a recommended way, but I suggest that you check if it works for you.

- Go to WordPress Dashboard > Templates
- Find the template in question, and go to the edit screen (Bot elementor itself, WordPress edit screen)
- From the top language switcher, change the language to the second language
- Click the Elementor button to go to Elementor.
- Change the link there to the translated page manually.

Thanks.

April 24, 2025 at 11:05 am #16963963

chulalakB

Hi Christopher,

Thank you for the suggestions.

I tried doing the 1st one but and translated the content myself as you suggested. But it is still not working. The links do not show in the right side columns at all.

For your information, I am using Classic Translation Editor since I had some issues with the Advanced Translation Editor few months ago.

I also don't want to edit the language translation in Elemntor as it means editing the page twice for future content updates.

Looking forward to resolving this.

April 27, 2025 at 5:23 pm #16972610

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

Thank you for the details and sorry for our late reply.As you use the classic translation editor, I checked and we have an issue with the image widget and the custom link feature of that there.

I already reported this to our second tier support. I will add this ticket to it too. I will get back to you if I have an update.

Thanks.

April 28, 2025 at 2:48 pm #16975526

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

I have an answer. As a temporary workaround please go to WPML > Settings > XML Configuration (tab) and add the XML code below there and click the save button:

<wpml-config>
  <elementor-widgets>
    <widget name="image">
      <fields>
        <field>link>url</field>
      </fields>
    </widget>
  </elementor-widgets>
</wpml-config>

After that do as follows:

- Go to your Dashboard > Pages.
- Open the edit screen of the original page. You should see a pencil/circle/gear icon in the sidebar options under the "Languages" section.
- Make a small change, for example, add an extra blank space at the end of a sentence/paragraph.
- Save it.
- You should now see that a circular arrow appears beside the 2nd languages links, this means that an update is required.
- Edit the translation again and save it up to 100% translated.

Thanks.

April 29, 2025 at 4:43 am #16977112

chulalakB

Hi Christopher,

Thank you very much for the temporary workaround.

I have done that and I am able to add the Link values in other languages as well.

Similarly, I had another template which had a button that was showing EN link in other languages as well. I added another code for the button widget in the XML config tab and was able to add translated links to other languages.

Here is the full XML code:

<wpml-config>
<elementor-widgets>
<widget name="image">
<fields>
<field>link>url</field>
</fields>
</widget>
<widget name="button">
<fields>
<field>link>url</field>
</fields>
</widget>
</elementor-widgets>
</wpml-config>

Thank you once again.