Home›Support›English Support›[Resolved] Code element text is not detected for translations (Bricks builder)
[Resolved] Code element text is not detected for translations (Bricks builder)
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is trying to detect strings for translation within a Bricks Builder element named "code". The client attempted to use existing documentation for Elementor and HTML but found that these guides did not work for their specific case.
I'm trying to detect Bricks Builder element (named "code") to detect strings for translations.
I tried playing around with configuration, but with no success.
Enabling the 'JSM Show Post Metadata' plugin I followed from the instructions in one of the articles and I see that:
Post metadata is inside the following part and I want to get the data from value field "code" for translations ...
--------------------
key: "_bricks_page_content_2"
value:
<omitted for brevity>
...
4 =>
array (
'id' => 'pmcvwx',
'name' => 'code',
'parent' => 'qtdefm',
'children' =>
array (
),
'settings' =>
array (
'code' => ' <p>No reliance on past performance:'
...
<omitted for brevity>
-------------------
Code elements should not be translatable as the code should be the same in both languages and not translated., but let me check it out and try to help.
I created a minimal installation of WordPress, WPML, and all necessary WPML add-ons.
You can access the WordPress dashboard using the link below:
- hidden link
Kindly follow the steps below:
- Set up WPML
- Install Bricks
- Try to replicate the issue with simple example
- Share with me step by step guide on how can I check the issue
Hey !
Thanks for helping us. Yes, I understand that translating the code element is not ideal, but since we have a lot of content which requires customization for lists for example, we need it to be effective in our job. Also can choose what pages we translate and what content from it. That being said, we try to minimize such usage where possible.
1. Configured WPML with a single language to translate to.
2. Added Bricks Builder as the theme.
3. Created a "TEST PAGE" with "code" element and content inside.
How to replicate:
When opening up the "TEST PAGE" translations, it doesn't detect anything beside the name of the page. Uploaded also picture which makes it clear what I'm talking about.
just to update you, we are in contact with the theme author and he will update you directly upon in support ticket for any new changes or new features in the code.
For now, we can only suggest a manual translation method.