Skip Navigation

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.

This topic contains 1 replies, has 1 voice.

Last updated by Bruno Kos 20 hours, 3 minutes ago.

Author Posts
May 21, 2025 at 11:06 am

burakC-11

Background of the issue:
I am trying to resolve translation issues on my website, hidden link, using WPML with Elementor.

Symptoms:
Translations are not visible on the site.

Questions:
Why are the translations not visible on my site?
How can I fix the translation visibility issue with WPML and Elementor?
There is no text on the translation page that I really need to translate.

May 21, 2025 at 11:59 am
May 21, 2025 at 12:39 pm #17057189

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

While working with the XML configuration described on https://wpml.org/documentation/support/multilingual-tools/registering-custom-elementor-widgets-for-translation/#generating-xml-code-with-the-wpml-config-generator, I cleaned up the original configuration by removing fields that should not be translatable (such as layout, margin, or boolean fields) and kept only content-related fields (text, headings, URLs, etc.)

<wpml-config>
  <elementor-widgets>
    <widget name="wdt-advanced-carousel">
      <fields>
        <field>item_contents</field>
      </fields>
      <fields-in-item items_of="item_contents">
        <field>item_title</field>
        <field>item_sub_title</field>
        <field>item_description</field>
        <field>item_link>url</field>
        <field>item_button_text</field>
      </fields-in-item>
    </widget>
    <widget name="wdt-advanced-heading">
      <fields>
        <field>title</field>
        <field>subtitle</field>
        <field>content</field>
      </fields>
    </widget>
    <widget name="wdt-heading">
      <fields>
        <field>title</field>
        <field>subtitle</field>
        <field>content</field>
      </fields>
      <fields-in-item items_of="header_positions">
        <field>element_value</field>
        <field>_id</field>
      </fields-in-item>
    </widget>
    <widget name="wdt-button">
      <fields>
        <field>text</field>
        <field>subtext</field>
      </fields>
    </widget>
    <widget name="wdt-text-image">
      <fields>
        <field>features_content</field>
      </fields>
      <fields-in-item items_of="features_content">
        <field>list_title</field>
      </fields-in-item>
    </widget>
    <widget name="wdt-counter">
      <fields>
        <field>item_contents</field>
      </fields>
      <fields-in-item items_of="item_contents">
        <field>item_title</field>
        <field>item_sub_title</field>
        <field>item_description</field>
        <field>item_link>url</field>
      </fields-in-item>
    </widget>
    <widget name="wdt-interactive-showcase">
      <fields>
        <field>item_contents</field>
      </fields>
      <fields-in-item items_of="item_contents">
        <field>item_title</field>
        <field>item_description</field>
      </fields-in-item>
    </widget>
    <widget name="wdt-mailchimp">
      <fields>
        <field>name_label</field>
        <field>email_label</field>
        <field>button_type</field>
        <field>button_label</field>
      </fields>
    </widget>
  </elementor-widgets>
</wpml-config>

Unfortunately, I was unable to save this XML directly via WPML’s Custom XML configuration page (/admin.php?page=tm%2Fmenu%2Fsettings\&sm=custom-xml-config). This seems to be caused by the REST API not functioning properly on your site.

When trying to update content to test this XML, I encountered the following error:
"Updating failed. The response is not a valid JSON response."

This is likely connected to the same REST API issue, which also prevents WPML from properly recognizing translations.

To isolate the cause of the issue, could you please try the following?

1. Deactivate all non-WPML plugins, then try saving this page:
hidden link

2. Temporarily switch to a default WordPress theme such as Twenty Twenty, and then try saving again.
This helps rule out a conflict with your current theme.

Also, when inspecting the browser console (in Chrome), I noticed some JavaScript errors that may be relevant.

Since saving via the WPML settings panel failed, I’ve temporarily added the cleaned XML directly to the theme’s wpml-config.xml file:
hidden link

Let me know once you've tried the steps above.

invalid json and chrome errors.jpg