Skip to content Skip to sidebar

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.
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    /**
     * 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.

Leave a Reply

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.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>