WPML

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

This issue is fixed. Updating to the latest version solves it on your site, so you only need this workaround if you can’t update yet.

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

Still Seeing This Issue?

If updating doesn’t fix it, ask a support question and we’ll look into it with you.

Ask a support question

All known issues