Skip to content Skip to sidebar

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

Problem:
The client was experiencing issues with WPML on their website using Bricks Builder. Specifically, translated ALT text attributes were not displaying correctly, showing the original Polish ALT text instead of the translated versions. Additionally, there were problems with the Bricks Builder translation workflow on the homepage, requiring multiple resends for translation before the layout displayed correctly.

Solution:
For the translated ALT text issue, we recommended the following steps:
1. Check the WordPress memory limit in WPML → Support and increase it if necessary by adding

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

in the wp-config.php file.
2. Ensure that the WPML Media Translation add-on is active and that the ALT texts for images are translated in WPML → Media Translation.
3. Re-translate specific ALT text strings by deleting the existing translations in WPML → String Translation, re-registering the string by visiting the page, and then re-translating the string.

For the Bricks Builder translation workflow issue:
1. Confirm that both Bricks Builder and all WPML plugins are updated to the latest versions.
2. Use specific WPML Troubleshooting tools in WPML → Support → Troubleshooting to synchronize content and language information.
3. After troubleshooting, re-save and resend the homepage for translation in Bricks Builder to check if the layout displays correctly.

Workaround:
Open the ...\wp-content\themes\bricks\includes\elements\image.php file

Line 751

Replace:

$image_id   = isset( $image['id'] ) ? $image['id'] : '';

With:

$image_id   = isset( $image['id'] ) ? apply_filters( 'wpml_object_id', $image['id'], 'attachment', TRUE  ) : '';

If these steps do not resolve the issues or if the solution becomes 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 problems persist, 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 17 replies, has 3 voices.

Last updated by Kor 4 months, 3 weeks ago.

Assisted by: Kor.

Author Posts
December 3, 2025 at 8:33 am #17629587

Kor

Thanks for your patience. We've applied a workaround suggested by our 2nd Tier Support and it worked.

This is what we've done.

Open the ...\wp-content\themes\bricks\includes\elements\image.php file

Line 751

Replace:

$image_id   = isset( $image['id'] ) ? $image['id'] : '';

With:

$image_id   = isset( $image['id'] ) ? apply_filters( 'wpml_object_id', $image['id'], 'attachment', TRUE  ) : '';

Please check now hidden link

December 3, 2025 at 11:27 am #17630403

beataK-8

Hi,
Thank you very much - now it's working perfectly. I also added the code to the image-gallery.php file, so the ALT text displays correctly there as well. Is this a Bricks Builder and WPML compatibility issue, or does the problem exist only on my website?
Regards

December 3, 2025 at 6:56 pm #17632066

Kor

Thanks for your reply. This appears to be a compatibility issue, and our 2nd Tier Support will take it from here. They will likely reach out to the theme author as well. If everything looks good on your end, please feel free to mark this ticket as resolved.