Skip Navigation

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

Problem:
If you're experiencing issues with Elementor buttons on your translated Dutch website linking back to the default English page even after changing the links in Elementor, the problem might be related to the URLs not being translated correctly.
Solution:
We recommend adding a custom XML configuration to your WPML settings. This will ensure that the links within Elementor widgets are correctly translated. Here's the XML code you should add:

<wpml-config>
  <elementor-widgets>
    <widget name="heading">
      <conditions>
        <condition key="widgetType">kinsley-section-heading</condition>
      </conditions>
      <fields>
        <field type="Link URL" editor_type="LINE" key_of="link">url</field>
      </fields>
    </widget>
  <elementor-widgets>
</wpml-config>

For more information on how to register page builder widgets for translation, please visit our documentation:

If this solution doesn't look relevant to your issue, please open a new support ticket with us.

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 5 replies, has 2 voices.

Last updated by Andrey 1 year, 3 months ago.

Assisted by: Andrey.

Author Posts
November 14, 2023 at 3:05 pm #14799593

timW-35

Hi,

when clicking on a Elementor button in the translated Dutch website, it links to the default English page. I've changed the links in Elementor, but now a day later, they have changed back to the wrong links.
I've read the documentation, but I can't find any urls when searching for them in the Advanced Translation Editor. What could be the issue?

Thx,
Laura

November 14, 2023 at 9:11 pm #14802653

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you for contacting WPML support.

Could you show me an example of such a page? Also, upload screenshots of how you created such buttons.

I've enabled debug information for this support ticket. Please see this link for how to get this information from your site and give it to us:
http://wpml.org/faq/provide-debug-information-faster-support/

November 15, 2023 at 8:24 am #14805343

timW-35

Hi,
this is an example of the page: hidden link
Button made with Kinsley theme in Elementor (view sceenshot).
I've changed the url in 'Button (link)' to the Dutch one twice now, but it keeps directing to the English one.

Screenshot 2023-11-15 at 09.19.55.jpg
November 15, 2023 at 9:19 am #14805965

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

I need to request temporary access (wp-admin and FTP) to your site – preferably to a test site where the problem has been replicated if possible – in order to be of better help. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

November 16, 2023 at 1:36 pm #14827233

timW-35

Hi,

I've fixed the problem. After running 'Translate Link Targets' in the settings, I had to adjust the urls in the string translations to each language.

Thx,
Laura

November 16, 2023 at 1:48 pm #14827463

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

That's great. I have also added the following config to WPML → Settings → Custom XML Configuration.

<wpml-config>
  <elementor-widgets>
    <widget name="heading">
      <conditions>
        <condition key="widgetType">kinsley-section-heading</condition>
      </conditions>
      <fields>
        <field type="Link URL" editor_type="LINE" key_of="link">url</field>
      </fields>
    </widget>
  </elementor-widgets>
</wpml-config>

https://wpml.org/documentation/support/language-configuration-files/how-to-register-page-builder-widgets-for-translation/