WPML

Overview of the Issue

When using SiteOrigin’s Layout Builder, there are issues with translating widgets that are duplicated both inside and outside the layout builder on the same page. As result, they are not translatable.

Workaround

This issue is fixed in WPML Multilingual CMS 5.3.0. Updating solves it on your site, so you only need this workaround if you can’t update yet.

Update WPML to 5.3.0 or later. On older versions: please, make sure of having a full backup of your site before proceeding.

  • Open …/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Integrations/SiteOrigin/TranslatableNodes.php file.
  • Look for line 142.
  • Change:
    PHP
    public function get_string_name( $node_id, $field, $settings ) {
    		return $node_id . '-' . $settings[ self::SETTINGS_FIELD ]['id'] . '-' . $field['field'];
    }
  • For:
    PHP
    public function get_string_name( $node_id, $field, $settings ) {
    	return $node_id . '-' . $settings[ self::SETTINGS_FIELD ]['widget_id'] . '-' . $field['field'];
    }
  • Do a small modification on the original page and save.
  • Update the translation.

All known issues

Still Seeing This Issue?

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