Skip Navigation

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

Problem:
The client was experiencing issues with translating the orange prefix (PowerPack Smart Headings) and the illustrations on the right-hand side (PowerPack Hover Cards 2) using WPML on their Beaver Builder powered site.
Solution:
We recommended adding custom XML configuration to WPML for the Beaver Builder widgets that were not translating correctly. Here are the steps we provided:
1. Navigate to WPML-> Settings-> Custom XML Configuration tab.
2. Add the following XML code:

<wpml-config><br />  <beaver-builder-widgets><br />    <widget name="pp-heading"><br />      <fields><br />        <field>prefix_text</field><br />        <field>heading_title</field><br />        <field>heading_title2</field><br />        <field>heading_sub_title</field><br />      </fields><br />    </widget><br />  </beaver-builder-widgets><br /></wpml-config>

3. Update the page in the default language and its translation.
We then asked the client to check if the prefix text works correctly on the translated page.
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 9 replies, has 2 voices.

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

Assisted by: Osama Mersal.

Author Posts
January 11, 2024 at 7:23 am #15172348

arminS-20

Dear Beaver WPML Team, for the homepage of hidden link there is an English translation that was created with WPML hidden link. We have solved the problem manually, but we have created a copy of the page especially for you so that you can see the error: hidden link. In the second paragraph, the orange prefix (PowerPack Smart Headings) is not translated and the illustrations on the right-hand side (PowerPack Hover Cards 2) are also in German and the English translation of the image is not pulled. Can you give us a tip on how to get this to work?

Website URL: hidden link
Web Host Provider: Siteground

January 11, 2024 at 8:49 am #15172783

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

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

The Smart Heading module might need to be registered for translation. Please check the following guides to know more about registering page builder widgets:

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

2) https://wpml.org/documentation/related-projects/wpml-compatibility-test-tools-plugin/registering-custom-elementor-widgets-for-translation/

After registering the widget, please update the page in the default language and its translations.

Best regards,
Osama

January 11, 2024 at 9:55 am #15173271

arminS-20

Hi Osama,

these are not custom widgets. This widgets are standard widgets from the Beaver Library. And Beaver Builder also translates everything correctly for the PowerPack Smart Headings, except for the Eye Brow. The problem is obviously that WPML does not recognise this.

Best

Thomas

January 11, 2024 at 10:07 am #15173281

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi Thomas,

Thanks for your update. Please log in to this sandbox site and create a test page with the same widget to replicate the issue. (hidden link)

If the issue is replicable, please let me know how to reproduce the issue.

Best regards,
Osama

January 11, 2024 at 2:30 pm #15175098

arminS-20

Done. I have built a page with the two widgets.

January 11, 2024 at 2:54 pm #15175303

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

Thanks for replicating the issue. I've added the following XML to WPML-> Settings-> Custom XML tab.

<wpml-config>
  <beaver-builder-widgets>
    <widget name="pp-heading">
      <fields>
        <field>prefix_text</field>
        <field>heading_title</field>
        <field>heading_title2</field>
        <field>heading_sub_title</field>
      </fields>
    </widget>
  </beaver-builder-widgets>
</wpml-config>

After that, I updated the page in the default language and its translation. Please check if the prefix text works correctly on the translated page.

Best regards,
Osama

January 11, 2024 at 4:30 pm #15175865

arminS-20

It looks it is working. Can I add this code by by going to the WPML → Settings page and clicking the Custom XML Configuration tab.
And do I not overwrite the existing XML file?
The other issue is still open. PowerPack Hover Cards 2 are also in German and the English but the translation of the image is not pulled.

January 11, 2024 at 5:24 pm #15176053

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

1) Please copy this XML, add it to the custom XML tab, and update the page in the default language.

After that, please update the translation, clear the cache, and check the front end.

2) Please try to translate the page using WPML Media Translation. Kindly check this guide. (https://wpml.org/documentation/getting-started-guide/media-translation/)

If that didn't help, may I kindly ask you to open a new ticket for your additional question?
We try to keep one issue per ticket in our forum. Continuing with one ticket per issue helps supporters focus on one issue at once and enables other users to find solutions to their questions faster.

Thanks for your understanding

Best regards,
Osama

January 12, 2024 at 9:39 am #15178064

arminS-20

If I insert the XML, will the existing XML be overwritten? At least that's what it says in the description above the box in which I should insert the XML. I just want to make sure that the whole page doesn't end up broken

January 12, 2024 at 12:22 pm #15178913

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

Yes, this XML will overwrite the plugin "wpml.config" file, but it will overwrite only the mentioned widget, not all widgets.

It shouldn't affect any other widgets on the page, but in order to be safe, please take a backup before applying the steps.

Best regards,
Osama