Skip Navigation

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

Problem:
The client wants to exclude some blocks from autotranslation in WPML, using WPBakery and Gutenberg editors, and inquires whether adding a class to a block can prohibit its translation.
Solution:
If you're experiencing this issue, we recommend using the manual translation method. This approach allows you to control the translation process more directly, including the ability to add or remove blocks or change styling as needed. For detailed guidance on how to implement manual translation, please visit our documentation: Using Different Translation Editors for Different Pages.

If this solution does not apply to your case, or if it seems outdated, we 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. Should you need further assistance, please do not hesitate to open a new support ticket at WPML support forum.

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 kennethT-12 11 months ago.

Assisted by: Mihai Apetrei.

Author Posts
July 10, 2024 at 7:48 pm #15930002

kennethT-12

Background of the issue:
We use plugin WPBakery page builder for landing pages and Gutenberg for blog pages. We want to exclude some blocks from autotranslation, possibly by adding a class to the block to prohibit translation.

Symptoms:
I didn't find an answer in your forum.

Questions:
Is there any way to exclude some blocks from autotranslation?
Can we add a class to a block to prohibit translation in WPML?

July 10, 2024 at 10:38 pm #15930420

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

In order to be able to change the design of the translated version (add/remove blocks or change styling), you will need to use the manual translation method as explained here:
https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/

I hope that you will find this information helpful.

Mihai Apetrei

July 12, 2024 at 9:17 am #15941262

kennethT-12

Hi, Mihail)

Thanks for answer.

Could you please send this greatest idea to developer team:
Add a class (like .wpml-exclude-from-translate) to a block to prohibit autotranslation (for WPBakery and Gutenberg rditors).