ื“ืœื’ ืขืœ ื ื™ื•ื•ื˜

Open

Overview of the issue

When using a Premium Addons for Elementor button to trigger an Elementor popup, the dynamic link does not work correctly in secondary languages. Instead of displaying the translated popup content, the original language content is shown. This issue does not occur with Elementor's standard button widget.

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 snippet:
    // WPML Workaround for compsupp-7847
    add_filter( 'wpml_pb_elementor_widget_dynamic_id_converters', function( $converters ) {
        $isButton = WPMLFPRelation::propEq( 'widgetType', 'premium-addon-button' );
    
        $buttonLinkLens = WPMLFPObj::lensPath( [ 'settings', '__dynamic__', 'premium_button_link' ] );
    
        $converters[] = [ $isButton, $buttonLinkLens, 'popup', 'popup' ];
    
        return $converters;
    } );
            

ื”ืฉืืจ ืžืขื ื”

ืื ื ื”ื™ืฉืืจื• ื‘ื ื•ืฉื ื•ื”ื™ื• ืžื›ื‘ื“ื™ื ืœืื—ืจื™ื. ืื ืืชื” ืฆืจื™ืš ืขื–ืจื” ื‘ื‘ืขื™ื•ืช ืฉืื™ื ืŸ ืงืฉื•ืจื•ืช ืœืคื•ืกื˜ ื”ื–ื”, ื”ืฉืชืžืฉ ื‘ืคื•ืจื•ื ื”ืชืžื™ื›ื” ืฉืœื ื• ื›ื“ื™ ืœื”ืชื—ื™ืœ ืฆ'ืื˜ ืื• ืœืฉืœื•ื— ื›ืจื˜ื™ืก.

ืชื•ื›ืœ ืœื”ืฉืชืžืฉ ื‘ืชื’ื™ื ื”ื‘ืื™ื:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>