Waiting for author
Overview of the issue
When using the Make Column Clickable Elementor plugin to open an Elementor Popup, the Popup IDs are not translated on secondary language pages. As a result, visitors see the popup in the original language instead of the translated one.
Workaround
Please, make sure of having a full site backup of your site before proceeding.
- Add the following code to your theme’s functions.php file.
123456789101112131415161718
/**
* Convert the popup link in a column
* Based on compsupp-7641 workaround
*/
add_filter(
'wpml_pb_elementor_widget_dynamic_id_converters'
,
function
(
$converters
) {
$isContainer
= WPMLFPRelation::propEq(
'elType'
,
'column'
);
$containerLinksLens
= WPMLFPcompose(
WPMLFPObj::lensProp(
'settings'
),
WPMLFPObj::lensPath( [
'__dynamic__'
,
'column_link'
] )
);
return
array_merge
(
$converters
,
[
[
$isContainer
,
$containerLinksLens
,
'popup'
,
'popup'
],
]
);
} );
Important Note:
The Make Column Clickable Elementor plugin hasn’t been updated in the last three years and does not seem to be actively maintained. Consequently, we’re closing this errata without a permanent fix.