Skip Navigation

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

Problem:
I am having this issue where I have translated a WordPress Pattern created with Kadence info block, but on the pages where I use this pattern, only the title is translated but not the content.

Solution:
To resolve this, follow please these steps:
1. Go to WPML > Settings > Custom XML Configuration tab.
2. Add the following XML code:

<wpml-config>
  <gutenberg-blocks>
    <gutenberg-block type="kadence/infobox" translate="1">
      <xpath>//*</xpath>
    </gutenberg-block>
  </gutenberg-blocks>
</wpml-config>

3. Save the configuration.
4. Edit the original pattern in the default language.
5. Make a small change to the pattern.
6. Update the translation.

This solution registers the custom blocks, making them available for translation and resolves the issue of content not being translated properly.

Relevant Documentation:
https://wpml.org/documentation/support/language-configuration-files/#gutenberg-blocks

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

Last updated by Mohamed Sayed 1 year, 6 months ago.

Assisted by: Mohamed Sayed.

Author Posts
August 25, 2023 at 12:50 pm #14291905

Thomas

Dear WPML-Team,

I use WordPress Patterns to display them on 2 different pages.

The Pattern "Leistungen" is fully translated:
hidden link

But on the pages where I use this pattern only the title is translated:
hidden link
hidden link

Is there a bug with Kadence info block?

Thank you in advance,
Thomas

wpml-patterns.jpg
wpml-patterns-02.jpg
August 27, 2023 at 3:59 pm #14296653

Mohamed Sayed

Hi Thomas,
Thanks for contacting WPML support.

Please try the following steps:

1. Go to WPML > Settings > Custom XML Configuration tab
2. Add the following XML code:

<wpml-config>
  <gutenberg-blocks>
    <gutenberg-block type="kadence/infobox" translate="1">
      <xpath>//*</xpath>
    </gutenberg-block>
  </gutenberg-blocks>
</wpml-config>

3. Save it
4. Edit the original pattern in the default language
5. Update it with a small change
6. Update the translation

Let me know please if that helps.

Kind regards,
Mohamed

August 27, 2023 at 9:03 pm #14296817

Thomas

Thank you. This worked :). Is it a known bug :)?

August 27, 2023 at 9:42 pm #14296859

Mohamed Sayed

I'm glad to hear that the issue is resolved.

It's not a known bug, in some cases you need to register the custom blocks to make it available for translation. This can be done by using a custom XML configuration that tells WPML which parts should be translated.

Please check this guide for more details: https://wpml.org/documentation/support/language-configuration-files/#gutenberg-blocks