Skip Navigation

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

Problem:
The client was unable to find the section labeled as per the documentation after publishing a page, which is necessary for registering a new Elementor widget for translation.
Solution:
We recommend adding the following code to the WPML-> Settings-> Custom XML tab:

<wpml-config><br />  <elementor-widgets><br />    <widget name="penci-block-heading"><br />      <fields><br />        <field>heading</field><br />      </fields><br />    </widget><br />    <widget name="penci-small-list"><br />      <fields><br />        <field>heading</field><br />      </fields><br />    </widget><br />  <elementor-widgets><br /></wpml-config>

After adding the code, update the page in the default language first before updating the translation to see the strings in the string translation.
If this solution doesn't look relevant, 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.

This topic contains 5 replies, has 2 voices.

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

Assisted by: Osama Mersal.

Author Posts
December 20, 2023 at 11:47 am #15101611

josephN-9

2. Another is- I have tried to register a new Elementor widget as your reference https://wpml.org/documentation/related-projects/wpml-compatibility-test-tools-plugin/registering-custom-elementor-widgets-for-translation/#using-wpml-config-generator-for-elementor

But step number 3 : After published the page then I return to the WordPress edit screen for that page but there is no section with labeled as your doc attachment.
I couldn't find that actually

December 20, 2023 at 12:08 pm #15101775

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Please login to this sandbox site. (hidden link)

After that, please create a test page using the problematic widget and translate it to replicate the issue.

If the issue is replicable, please let me know to check the issue and register the widget.

Best regards,
Osama

December 20, 2023 at 12:24 pm #15101861

josephN-9

Hi there, I am trying to register That elementor Header widget that comes from "Soledad theme".
The sandbox website that you gave me there have no soledad theme activated.
So How can I test the Elementor Header widget of Soledad theme

Screenshot(93).png
December 20, 2023 at 12:31 pm #15102023

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

I checked the mentioned widget on your site and was able to translate it by adding the following code to the WPML-> Settings-> Custom XML tab.

<wpml-config>
  <elementor-widgets>
    <widget name="penci-block-heading">
      <fields>
        <field>heading</field>
      </fields>
    </widget>
    <widget name="penci-small-list">
      <fields>
        <field>heading</field>
      </fields>
    </widget>
  </elementor-widgets>
</wpml-config>

In order to see the strings in the string translation, please update the page in the default language first before updating the translation.

Best regards,
Osama

December 20, 2023 at 12:52 pm #15102143

josephN-9

I saw you have put the above code(WPML-> Settings-> Custom XML ) to register mentioned widget but still it doesn't show the widget heading in editor of wpml editor, why ?

Screenshot(94).png
December 20, 2023 at 1:03 pm #15102413

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

I've updated the page in the default language, and the strings appear correctly in the translation editor. (Kindly check the attached screenshot)

Best regards,
Osama

2023-12-20_15-02-13.jpg