Skip to content Skip to sidebar

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

Problem:
You are experiencing issues with WPML translating ACF Pro variables within Bricks Builder, causing layout disruptions upon updating translations.
Solution:
Note that this issue was already resolved in one of the latest updates for the Advanced Translation Editor. The tags might still show up inside the translation editor, but automatic translation should not affect them.

Alternative workarounds:
1. Use the Glossary Feature in the Advanced Translation Editor to declare dynamic tags as general terms to prevent them from being translated. For guidance, visit How to get better translations using WPML Glossary.
2. Alternatively, consider using a different theme and displaying fields with PHP. For more information, check Displaying custom field values in your theme.
3. To exclude ACF Pro variables from being translated in Bricks Builder, add the following code to the end of the functions.php file of your Bricks Theme:

add_filter( 'wpml_tm_job_field_is_translatable', 'wpmltriage_skip_acfdynamic_fields_in_bricks', 10, 2 );<br /><br />function wpmltriage_skip_acfdynamic_fields_in_bricks( $is_translatable, $job_translate ) {<br />    $data = $job_translate['field_data'];<br />    if ( 'base64' === $job_translate['field_format'] ) {<br />        $data = base64_decode( $data );<br />    }<br />    if (isset($data) && strpos($data, '{acf_') === 0) {<br />      return false;<br />  }<br /><br />  return true;<br />}

If this solution does not resolve your issue or seems outdated, we 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. If further assistance is needed, please 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 18 replies, has 1 voice.

Last updated by Andreas W. 1 month, 1 week ago.

Assisted by: Andreas W..

Author Posts
December 26, 2024 at 8:42 pm #16547615

andreS-64

Please help me just to exclude Bricks Builder strings from WPML translations list.

December 26, 2024 at 8:52 pm #16547616

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I am sorry, but there is no simple way we could exclude them.

The Bricks Builder Widgets are expected to be translatable and this is something that is controlled direclty inside Bricks's code.

This is controlled inside /wp-content/themes/bricks/includes/integrations/wpml/wpml.php

December 27, 2024 at 2:32 pm #16548729

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Adding the following code to the end of the functions.php file of your Bricks Theme should exclude the placeholder when starting a new translation job:

add_filter( 'wpml_tm_job_field_is_translatable', 'wpmltriage_skip_acfdynamic_fields_in_bricks', 10, 2 );

function wpmltriage_skip_acfdynamic_fields_in_bricks( $is_translatable, $job_translate ) {
    $data = $job_translate['field_data'];
    if ( 'base64' === $job_translate['field_format'] ) {
        $data = base64_decode( $data );
    }
    // Check if data exists and contains '{acf_' at the beginning
    if (isset($data) && strpos($data, '{acf_') === 0) {
      return false;
  }

  return true;
}

The issue has been escalated towards our compatibility team for further revision. Once I received more feedback I will contact you on this ticket again.

November 1, 2025 at 4:18 am #17537090

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

The reported issues should be currenlty solved inside the Advanced Translation Editor.

In case further assistance is needed, please let us know.