Skip to content Skip to sidebar

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

Problem:
You are trying to translate Elementor heading titles and paragraphs on your site but the translations are not displayed, only the original language.
Solution:
1) Translate the template ID via WPML-> String Translation. After this step, the strings should work correctly in both languages.
2) To translate the related listings widget, add the following XML code in WPML-> Settings-> XML tab:

<elementor-widgets>
  <widget name="apus_element_detail_listing_related">
    <fields>
      <field>title</field>
    </fields>
  </widget>
</elementor-widgets>

Please verify if the translations are now correctly displayed.

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

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 2 voices.

Last updated by Osama Mersal 1 year, 10 months ago.

Assisted by: Osama Mersal.

Author Posts
June 27, 2024 at 9:00 am #15842014

krzysiekJ

Background of the issue:
I am trying to translate an Elementor heading titles and paragraph on my site hidden link. I followed the steps from the WPML documentation (https://wpml.org/documentation/plugins-compatibility/elementor/#translate-elementor-templates).

Symptoms:
The translation is not displayed on the page, only the original language.

Questions:
Why is the translation not displayed on the page?
Are there additional steps required to translate Elementor heading titles using WPML?

June 27, 2024 at 10:05 am #15842801

Osama Mersal

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

Please edit the translated page/template that you use this listing item using Elementor and make sure that it uses the translated listing item.

If it uses the correct listing item, I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

June 27, 2024 at 1:56 pm #15844640

Osama Mersal

Hi,

Thanks for the access details. The following XML code was added to WPML-> Settings-> XML tab.

  <elementor-widgets>
    <widget name="heading">
      <conditions>
        <condition key="widgetType">apus_element_detail_listing_related</condition>
      </conditions>
      <fields>
        <field type="Title" editor_type="LINE">title</field>
        <field type="Limit" editor_type="LINE">limit</field>
        <field type="Layout type" editor_type="LINE">layout_type</field>
        <field type="Columns" editor_type="LINE">columns</field>
        <field type="Rows" editor_type="LINE">rows</field>
        <field type="Show pagination" editor_type="LINE">show_pagination</field>
        <field type="Position nav" editor_type="LINE">position_nav</field>
      </fields>
    </widget>
  </elementor-widgets>

After deleting this code and updating the template in the default language along with its translation, the strings are translated correctly.

Kindly check the page and let me know if the strings work as expected. (hidden link)

Best regards,
Osama

June 28, 2024 at 6:43 am #15849615

krzysiekJ

Hi,

Unfortunately, strings do not work as expected. Default site language is polish, but heading titles and text in screenshot are in english. They were suppose to be english only in english version. Now they are english in both versions.

Also section "Similar vehicles" (in polish "Podobne pojazdy") at the bottom of the page is now missing. The code added in XML tab was for translating "Similar vehicles" (elementor widget: apus_element_detail_listing_related), following this instruction: https://wpml.org/documentation/support/language-configuration-files/how-to-register-page-builder-widgets-for-translation/

Kind regards

3.jpg
2.png
1.png
June 28, 2024 at 11:50 am #15851610

Osama Mersal

Hi,

1) I translated the template ID via WPML-> String Translation. (hidden link)

After that, the strings are working correctly in both languages.

2) I added the following code to translate the related listings widget in WPML-> Settings-> XML tab.

<elementor-widgets>
  <widget name="apus_element_detail_listing_related">
    <fields>
      <field>title</field>
    </fields>
  </widget>
</elementor-widgets>

Kindly check the following posts and let me know if they work correctly.

EN: hidden link

PL: hidden link

Best regards,
Osama

July 1, 2024 at 1:33 pm #15868920

krzysiekJ

Hi,

Everything works perfectly now. Thank you very much.

Kind regards