Skip Navigation

Open

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 );
    
    

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>