- Status
- Waiting for author
- Related plugin/theme
- WPBakery
- Topic tags
- Compatibility
Overview of the issue
When using WPBakery Page Builder with WPML, you might experience the following issue: vc_raw_html shortcodes are removed during translation when using the Advanced Translation Editor (ATE). This results in missing content on the translated page.
Workaround
Please, make sure of having a full site backup of your site before proceeding.
- Open the …/wp-content/plugins/js_composer/include/helpers/helpers.php file.
- Look for line 1946.
- Replace:
if ( vc_user_access()->part( 'unfiltered_html' )->checkStateAny( true, null )->get() ) {
- With:
if ( vc_user_access()->part( 'unfiltered_html' )->checkStateAny( true, null )->get() || ( defined( 'REST_REQUEST' ) && REST_REQUEST ) ) {
- Save your original page and translate it using the “+” icon.