Skip to content Skip to sidebar

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

Problem:
The client is using a custom field from ACF (True / False) for Pages to define if the header of Bricksbuilder is an overlay or a standard header. The CSS code is set to change styles based on the 'True' value. However, when translated to French, 'True' becomes 'Vrai', causing the CSS not to apply correctly.
Solution:
We recommend checking the 'True' string in WPML → String Translation. Search for 'True', and if found, copy the original value into the translation field and save it. This action should prevent the translation of 'True' to 'Vrai' and maintain the correct functionality of your CSS.

If the problem persists, please provide more details about how you are using this ACF field in your template or code, how you output its value, and when and where the problem occurs. Uploading relevant screenshots could also help us better understand and address the issue.

Please note that this solution might be outdated or not applicable to your specific case. 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. If the issue persists, we encourage you to open a new support ticket at WPML support forum for further assistance.

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 1 reply, has 0 voices.

Last updated by Andrey 3 weeks, 1 day ago.

Assisted by: Andrey.

Author Posts
June 23, 2025 at 5:19 pm #17162061

philippeB-68

Background of the issue:
I am using a custom field from ACF (True / False) for Pages to define if the header of Bricksbuilder is an overlay or a standard header. I use the code such as: [data-header-overlay="True"] { position: absolute; top: 0; left: 0; z-index: 999; } [data-header-overlay="True"] .main-nav-link.brxe-dropdown { color: white; } [data-header-overlay="True"] .main-nav-link.brxe-text-link { color: white; } to define when it needs to be applied.

Symptoms:
The 'True' value is translated to 'Vrai' in French, causing the code not to work.

Questions:
Is there a way not to translate the 'True' value and keep it in English?

June 24, 2025 at 12:51 pm #17165073

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

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

Thank you for contacting WPML support.

Have you tried checking this string in WPML → String Translation? Please search for “True” there, and if you find the exact string, copy the original value into the translation field and save it.

If the issue persists, could you please provide more details about how you’re using this custom ACF field (True/False)? Specifically:
• Where exactly you use this field in your template or code
• How you output its value
• When and where the problem occurs

Additionally, please upload any relevant screenshots to help illustrate the issue — this will help us better understand the context and assist you more effectively.