Open
Reported for: WPML Multilingual CMS 4.6.6
Overview of the issue
When utilizing the Elementor plugin and translating background images using WPML Media Translation, if these images are configured as a slideshow for a section, you may encounter an issue where they do not appear translated in their respective translated versions.
Workaround
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/Elementor/media/modules/AllNodes.php file.
- Replace:
1234
foreach
(
$backgrounds
as
$background
) {
$settings
=
$this
->translate_image_property(
$settings
,
$background
,
$target_lang
,
$source_lang
);
}
- For:
123456
foreach
(
$backgrounds
as
$background
) {
$settings
=
$this
->translate_image_property(
$settings
,
$background
,
$target_lang
,
$source_lang
);
}
$settings
=
$this
->translate_images_property(
$settings
,
'background_slideshow_gallery'
,
$target_lang
,
$source_lang
);