Skip Navigation

Resolved

Reported for: WPML Multilingual CMS 4.5.14

Resolved in: 4.6.0

Topic Tags: Bug

Overview of the issue

If you are using custom blocks, particularly with the Advanced Custom Fields plugin, you will notice that it adds some empty <p></p> tags when you translate them with WPML.

Workaround

Please, be sure of making a full backup of your site before preoceding.

  1. Open the /wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Integrations/Gutenberg/class-wpml-gutenberg-integration.php file.
  2. Change:
    	$content = wpautop( $block->innerHTML );
    

    To:

    $content = ( $block->innerHTML );