Skip Navigation

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

Problem:
Some WP Bakery blocks are not translating correctly on a multilingual site. The blocks display French content on an English page, and the content does not appear in the translation editor.
Solution:
First, ensure that the WP Bakery builder is enabled for posts. Then, add the following XML configuration to the WPML-> Settings-> Custom XML tab:

<wpml-config><shortcodes><shortcode><tag>vc_message</tag></shortcode><shortcode><tag>vc_text_separator</tag><attributes><attribute>title</attribute></attributes></shortcode><shortcode><tag>vc_tta_accordion</tag><attributes><attribute>title</attribute></attributes></shortcode></shortcodes></wpml-config>

After adding this XML, update the page and its translation. This should make the module content appear in the translation editor. Next, register the untranslated modules and update the post in the default language along with its translation.
For further guidance on identifying attributes and tags in shortcodes, please refer to this video and check this guide.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, we recommend opening a new support ticket. We also highly 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. For further assistance, please visit our support forum at https://wpml.org/forums/.

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

Last updated by Osama Mersal 2 months ago.

Assisted by: Osama Mersal.

Author Posts
September 26, 2024 at 5:30 am #16223012

yuanL-2

Some WP Bakery blocks are not translating, For example on this page, hidden link you can see the blocks having the French content while page language is English.

The content from these blocks also does not appear in translation editor.

Site default language is French.

Note: In the parent ticket, a CW test site was prepared which can be used to investigate the problem.

Screenshot 2024-09-26 103457.jpg
Screenshot 2024-09-26 103437.jpg
Screenshot 2024-09-26 103418.jpg
Screenshot 2024-09-26 103354.jpg
Screenshot 2024-09-26 103318.jpg
September 26, 2024 at 7:05 am #16223226

Osama Mersal
Supporter

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

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

Hi,

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

1) The post in the dashboard doesn't show the WP Bakery editor, so please check that and let me know if you can see it correctly.

2) The problematic modules might need to be registered for translation. Kindly check the following guides:

1- https://wpml.org/documentation/support/language-configuration-files/translate-custom-shortcodes-with-wpml/

2- https://wpml.org/documentation/support/language-configuration-files/register-page-builder-content-for-translation/

Best regards,
Osama

September 27, 2024 at 5:24 am #16228054

yuanL-2

I did not mentioned that it is in WP Bakery, your support person is saying that only.

September 29, 2024 at 7:50 am #16232818

Osama Mersal
Supporter

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

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

Hi,

1) Sorry for the late reply deu to the weekend. I checked the post, and there are some WP Bakery shortcodes. (Kindly check this hidden link">screenshot)

2) I enabled the WP Bakery builder for posts and added the following XML to WPML-> Settings-> Custom XML tab.

<wpml-config>
  <shortcodes>
    <shortcode>
        <tag>vc_message</tag>
    </shortcode>
    <shortcode>
        <tag>vc_text_separator</tag>
        <attributes>
            <attribute>title</attribute>
        </attributes>
       </shortcode>
          <shortcode>
        <tag>vc_tta_accordion</tag>
        <attributes>
            <attribute>title</attribute>
        </attributes>
    </shortcode>
  </shortcodes>
</wpml-config>

After that, I updated the page and its translation, which made the module content appear in the translation editor.

Please check this hidden link">post, register the untranslated modules, and then update the post in the default language along with its translation.

Best regards,
Osama

October 3, 2024 at 3:25 pm #16250996

yuanL-2

Do you have any video guide or can you show me on your screen recorded video on my website?

October 3, 2024 at 3:35 pm #16251073

Osama Mersal
Supporter

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

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

Hi,

Please check this hidden link">video to see how to know the attribute and tag in shortcodes. Also, please check this guide to see the steps.

Best regards,
Osama

October 6, 2024 at 9:16 am #16257666

yuanL-2

Let me check, please.

October 6, 2024 at 9:58 am #16257710

Osama Mersal
Supporter

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

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

Hi,

Sure, please take your time.

Best regards,
Osama

October 10, 2024 at 12:59 pm #16275199

yuanL-2

I am still trying, Please don't close this chat.

October 10, 2024 at 1:03 pm #16275214

Osama Mersal
Supporter

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

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

Hi,

I won't close it, but please be aware that our system closes the tickets after two weeks of inactivity, so kindly update the ticket once a week.

Best regards,
Osama

October 16, 2024 at 3:03 pm #16296454

yuanL-2

Ok thanks.

October 16, 2024 at 3:04 pm #16296458

Osama Mersal
Supporter

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

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

Hi,

You are more than welcome!

Best regards,
Osama