This thread is resolved. Here is a description of the problem and solution.
Problem:
If you're experiencing issues where text blocks appear as single units on your webpage and UI builder but are incorrectly split into fragments when opened for translation in Crowdin, causing loss of context for translators, this might be due to line breaks in the Text Block Element of WP Bakery Page Builder.
Solution:
We recommend adding the following code to the
functions.php
file of your theme to prevent automatic addition of paragraph tags which might be causing this issue:
remove_filter('the_content', 'wpautop');<br />remove_filter('the_excerpt', 'wpautop');After adding this code, please modify the page content or add new content and test the changes. If the problem persists, it might be due to inherent behavior of the WP Bakery Page Builder in conjunction with Crowdin, and changes in the source text might be necessary to resolve 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 continues, please 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.
This topic contains 1 replies, has 0 voices.
Last updated by 6 days, 8 hours ago.
Assisted by: Christopher Amirian.