Skip Navigation

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

Problem:
I'm attempting to translate a header template created with WPBakery Page Builder. Despite translating the content, the changes are not visible in the DE version of the site, and I'm unable to translate certain functions as well.

Solution:
The issue was addressed by using a different widget that is compatible with WPML. The specific WP Bakery widget named "HEADING" used in the theme is not compatible with WPML. For the translation to be effective, either the theme developer needs to make their WP Bakery widgets compatible with WPML or an alternative, compatible widget should be used.

Relevant Documentation:

https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#strings-arent-selected-for-translation
https://wpml.org/faq/how-to-translate-urls-shortcodes-and-html-attributes-using-the-advanced-translation-editor/
https://wpml.org/documentation/translating-your-contents/page-builders/how-to-register-page-builder-modules-and-theme-options/

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

Last updated by Christopher Amirian 1 year, 7 months ago.

Assisted by: Christopher Amirian.

Author Posts
August 28, 2023 at 6:49 am #14297417

mariuszC-6

Tell us what you are trying to do?
I'm trying to translate a header template. It's built on the WPBakery Page Builder. Despite making changes in the translation, I don't see them in the DE version. Why? I also can't translate the functions.

Is there any documentation that you are following?

Yes

Is there a similar example that we can see?

No

What is the link to your site?

hidden link

August 28, 2023 at 10:08 am #14299375

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

First thing first, I'd suggest that you increase your WordPress installation PHP memory limit due to the amount of plugins you have installed.

The minimum requirement is 128M but I suggest that you increase it to 512M: https://wpml.org/home/minimum-requirements/

You can add this by adding the code below to "wp-config.php" file of your WordPress installation root folder:

/** Memory Limit */
define('WP_MEMORY_LIMIT', '512M');
define( 'WP_MAX_MEMORY_LIMIT', '512M' );

Please add the code above the line below:

/* That's all, stop editing! Happy blogging. */

Secondly, most probably your theme has an option to select the header that you have created.

That is why I suggest that you find the ID of the WP Bakery template and the ID of the translated one.

Then go to WPML > String Translation, scroll down and click the ADMIN TEXTS link and search the ID of the original template there.

If you find it, then register it to string translation and add the translated ID as the translation of the string and it should work.

For more information:

https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#strings-arent-selected-for-translation

Thanks.

August 28, 2023 at 12:11 pm #14300685

mariuszC-6

You write... find the ID of the WP Bakery template and the ID of the translated one. - Where can I find this ID? I translated a specific section (attachment), but there are no changes on the front end.

Zrzut ekranu 2023-08-28 o 14.03.55.png
August 30, 2023 at 10:07 am #14312335

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

No that is not what I meant, if there is an option on your theme that selects the template that you already created with WP Bakery.

So basically you added the template, and most probably already translated it. But there should be an option somewhere in your theme that you tell the theme that this is what I want to show as the header.

That I need to know what is, and you can search for that option. Usually you select the WP Bakery template there and the value of that option is the ID of the template which you can see by going to the edit screen of the WP Bakery Template and in the URL of the page on the browser address bar you will see the ID.

Then you can use the admin language switcher to change the language and this time see the translated WP Bakery template ID.

Finally you would search in the string translation for the default ID and in the translation you would add the translated ID like the documentation I shared.

If you need help, I'd appreciate it if you could give me the URL/User/Pass of your WordPress dashboard after you make sure that you have a backup of your website.
It is absolutely important that you give us a guarantee that you have a backup so if something happens you will have a point of restore.

Make sure you set the next reply as private.

But please give me information on where to see the theme option that selects the header or if there is another way that you select the WP Bakery Template as the main header of the website so I know where to search.

Thanks.

September 4, 2023 at 3:31 pm #14338315

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

I have created a video showing how to do the translation:

hidden link

Here is the documentation of the WordPress Native Editor translation (Manual Translation) mode I mentioned at the end of the video if you are interested:

https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/

Thanks.

September 11, 2023 at 7:31 am #14373099

mariuszC-6

What about the phrases that WPML found, I added for translation, and translated, but they are still in Polish? For instance, "Zarejestruj się".

14356099-Zrzut_ekranu_2023_09_7_o_08.26.20.png
14356099-Zrzut_ekranu_2023_09_7_o_08.26.57.png
September 11, 2023 at 11:02 am #14375379

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

To find that string, you had to search at the top left search box int he Advanced Translation Editor.

Please check the screenshot.

For more information:

https://wpml.org/faq/how-to-translate-urls-shortcodes-and-html-attributes-using-the-advanced-translation-editor/

Thanks.

Screenshot 2023-09-11 at 15.01.00.png
September 11, 2023 at 2:43 pm #14377457

mariuszC-6

Ok, it works. However, the keywords "PI-NUTS - PRODUCENT NATURALNYCH WYROBÓW ORZECHOWYCH" are either not visible for translation.

September 13, 2023 at 9:26 am #14388389

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

I checked by going to the header template and instead of using the Heading widget I used the WP Text widget and it worked.

I added Hello text and translated it with no issues. Then I removed it, it was just for a test.

That shows your theme has this WP Bakery widget named HEADING which is not compatible with WPML and you need to contact them to fix the issue.

Alternatively, use another widget which is a native WP Bakery widget which is compatible with WPML.

You can give the theme developer the documentation below on how to make their WP Bakery widgets compatible with WPML:

https://wpml.org/documentation/translating-your-contents/page-builders/how-to-register-page-builder-modules-and-theme-options/

Thanks.

Screenshot 2023-09-13 at 13.21.49 1.png
Screenshot 2023-09-13 at 13.22.27.png