Bỏ qua điều hướng

Open

Reported for: WPML Multilingual CMS 4.6.11

Topic Tags: Compatibility

Overview of the issue

If you set up a Popup which is trigger by dynamic tags within a Lottie widget with Elementor plugin, you will experience that the translated versions of the popups do not display the expected content. Instead, it shows the content from the default language.

Workaround

Please, make sure of having a full site backup of your site before proceeding.

  • Open your theme’s functions.php file.
  • Add the following code:
    /*
    * WPML Workaround for wpmlsupp-11806
    */
    add_filter( 'wpml_pb_elementor_widget_dynamic_id_converters', function( $converters ) {
    
    	$isLottie = \WPML\FP\Relation::propEq( 'widgetType', 'lottie' );
    	
    	$lottieLinksLens = \WPML\FP\Obj::lensPath( [ 'settings', '__dynamic__', 'custom_link' ] );
    
    	return array_merge(
    		$converters,
    		[
    			[ $isLottie, $lottieLinksLens, 'popup', 'popup' ],
    		]
    	);
    
    } );
    

Để lại câu trả lời

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

Bạn có thể sử dụng các thẻ này:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>