Skip Navigation

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

Problem:
I want to translate the content in the FAQ block created by the plugin "Schema & Structured Data for WP & AMP".
Solution:
Use the custom XML configuration code to register the block for translation.

<wpml-config>
  <gutenberg-blocks>
    <gutenberg-block type="saswp/faq-block" translate="1">
      <key name="items">
        </key><key name="*">
          <key name="title"></key>
          <key name="description"></key>
        </key>
      
    </gutenberg-block>
  </gutenberg-blocks>
</wpml-config>

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.

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Georgs Jegers 1 year, 10 months ago.

Assisted by: Long Nguyen.

Author Posts
June 5, 2023 at 4:19 pm #13773347

Georgs Jegers

Our pages have a FAQ section, generated by the WP plugin "Schema & Structured Data for WP & AMP". I would like to translate the contents in the FAQ box, but I can't find the setting to enable it. Do you have any tips?

In a previous ticket I said this was part of Elementor - I look into it more and all of our Elementor content gets correctly picked up, even the SEO fields that we want to translate. This FAQ box is the only one that's missing.

Madara.png
Madara 2.png
June 6, 2023 at 3:27 am #13774963

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Georgs,

Thank you for contacting WPML support, I'd be happy to help you with this issue.

You can follow the documentation below to register a Gutenberg block for translation with a custom language XML configuration code.
https://wpml.org/documentation/support/language-configuration-files/#gutenberg-blocks

For example:

<wpml-config>
  <gutenberg-blocks>
    <gutenberg-block type="saswp/faq-block" translate="1">
      <key name="items">
        <key name="*">
          <key name="title" />
          <key name="description" />
        </key>
      </key>
    </gutenberg-block>
  </gutenberg-blocks>
</wpml-config>

While checking the debug info, I see that the WordPress Memory Limit is below the requirements. The minimum requirements are 128M, but we do recommend 256M and the debug information of your site shows it set to 40M. Please check this link for more details
https://wpml.org/home/minimum-requirements/.
You can increase it by adding the following code in your wp-config.php file, right before the /* That’s all, stop editing! Happy publishing. */ line:


define( 'WP_MAX_MEMORY_LIMIT', '256M' );
define( 'WP_MEMORY_LIMIT', '128M' );

After adding the code you can confirm that the memory was changed correctly from WPML > Support > WordPress > Memory limit.

Look forward to your reply.
Thanks