Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 3 replies, has 3 voices.

Last updated by benjaminE-20 1 year, 8 months ago.

Assisted by: Nicolas V..

Author Posts
June 5, 2023 at 10:17 am #13769337

benjaminE-20

I am using Elementor popups on my site, but for some reason some of these are not showing as translated on the English version of the site. The translation is completed in the translation manager.

Issue is found here: hidden link
The popups are activated by clicking the "read about" links in the red boxes

Dantra.dk / Dantra.eu

Skærmbillede 2023-06-05 121317.png
Skærmbillede 2023-06-05 121241.png
June 5, 2023 at 1:06 pm #13771299

Ahmed Mohammed
Supporter

Timezone: Africa/Cairo (GMT+02:00)

Hi there,

Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with the first debugging steps or if I can help with the issue quickly.

It looks like the popup has been added to an icon list widget. The issue has been reported to our devs and they have already created a fix that will be released in a future release of WPML.

In the meantime, you can test the following workaround:

== Please backup your website files and database ==

Add the following code snippet to your theme's functions.php file

/**
 * Convert the popup link in icon list.
 * @see <em><u>hidden link</u></em>
 */
add_filter( 'wpml_pb_elementor_widget_dynamic_id_converters', function( $converters ) {
	$isIconList = \WPML\FP\Relation::propEq( 'widgetType', 'icon-list' );

	$iconListLinksLens = \WPML\FP\compose(
		\WPML\FP\Obj::lensProp( 'settings' ),
		\WPML\FP\Obj::lensMappedProp( 'icon_list' ),
		\WPML\FP\Obj::lensPath( [ '__dynamic__', 'link' ] )
	);

	return array_merge(
		$converters,
		[
				[ $isIconList, $iconListLinksLens, 'popup', 'popup' ],
		]
	);
} );

Please let us know how it goes.

June 5, 2023 at 4:31 pm #13773539

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hi Benjamin,

My name is Nicolas and I will be happy to help you today. Please let me know if the solution provided by Ahmed worked for you.

Thanks,
Nico

June 6, 2023 at 7:32 am #13775555

benjaminE-20

My issue is resolved now. Thank you for the quick solution!