Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
This is a compatibility problem with the Make Column Clickable Elementor plugin. You are trying to translate a popup in Elementor using WPML, but the popup displays in Greek instead of English.
Solution:
We recommend following these steps to address the issue:
1. Ensure you back up your site before making any changes.
2. Open the

functions.php

file of your theme using a code editor.
3. Insert the following code:

/**
 * Convert the popup link in a column
 * Based on compsupp-7641 workaround
 */
add_filter( 'wpml_pb_elementor_widget_dynamic_id_converters', function( $converters ) {
	$isContainer = \WPML\FP\Relation::propEq( 'elType', 'column' );

	$containerLinksLens = \WPML\FP\compose(
		\WPML\FP\Obj::lensProp( 'settings' ),
		\WPML\FP\Obj::lensPath( [ '__dynamic__', 'column_link' ] )
	);
	return array_merge(
		$converters,
		[
				[ $isContainer, $containerLinksLens, 'popup', 'popup' ],
		]
	);
} );

4. Save the changes to the file.
We have published an errata about it: https://wpml.org/errata/make-column-clickable-elementor-popup-ids-not-translated-in-secondary-languages/

This code snippet should help ensure that the popup is displayed in the correct language. We contacted the authors of the Make Column Clickable Elementor plugin and asked them to add this fix to their files. https://wordpress.org/plugins/make-column-clickable-elementor/.
If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your specific case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket.

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.

Tagged: 

This topic contains 7 replies, has 0 voices.

Last updated by filipposD 3 weeks, 6 days ago.

Assisted by: Itamar.

Author Posts
May 12, 2025 at 10:18 am

filipposD

Background of the issue:
I am trying to translate a popup using WPML on my WordPress site. The issue can be seen on this page: hidden link.

Symptoms:
The popup in the color charts near the bottom of the page is displayed in Greek instead of English.

Questions:
Why is the popup not translating to English?
How can I ensure the popup is displayed in the correct language?

May 12, 2025 at 11:08 am
May 12, 2025 at 11:09 am #17022487

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

After updating WPML and its add-ons and Elementor and its add-ons, please make a small change to the original popup. Then u[date its transaltion. Do the same for the page where the pop-up shows. And check if the problem is solved.

Regards,
Itamar.

May 12, 2025 at 11:51 am #17022703

filipposD

unfortunately the issue persists even after a full update, following the editing and saving steps as you have mentioned. If you need I can provide with the debug info again.

May 13, 2025 at 3:45 pm #17028903

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi, and thanks for trying my suggestions.

I'm consulting our second-tier supporters about this issue. I'll update you here when I have news about it.

I appreciate your patience.
Itamar.

May 19, 2025 at 3:23 pm #17049385

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Our second-tier supporter instructed me to take a copy of your site and esclate it for further debugging. For this, I must install a plugin like Duplicator or All In One Migration. Please let me know if you agree.

Regards,
Itamar.

May 22, 2025 at 8:14 am #17059960

filipposD

Yes I agree

May 25, 2025 at 6:39 pm #17070433

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Thanks.

I installed the All-in-One WP Migration plugin and made a copy of the site. After that, I removed the plugin. I also escalated this issue to our second-tier supporters. We'll keep you updated on any news regarding this issue.

I appreciate your patience.
Itamar.

June 15, 2025 at 5:19 pm #17136730

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Our compatibility team has provided a workaround for this issue. The workaround is required because you are using an unsupported plugin to make Elementor columns clickable.

1. Take a backup of your site in case something goes wrong.
2. Open the functions.php file of your theme with a code editor.
3. Insert this code:

/**
 * Convert the popup link in a column
 * Based on compsupp-7641 workaround
 */
add_filter( 'wpml_pb_elementor_widget_dynamic_id_converters', function( $converters ) {
	$isContainer = \WPML\FP\Relation::propEq( 'elType', 'column' );

	$containerLinksLens = \WPML\FP\compose(
		\WPML\FP\Obj::lensProp( 'settings' ),
		\WPML\FP\Obj::lensPath( [ '__dynamic__', 'column_link' ] )
	);
	return array_merge(
		$converters,
		[
				[ $isContainer, $containerLinksLens, 'popup', 'popup' ],
		]
	);
} );

4. Save the file.

**** Important! Please make a full site backup (files and DB) before you proceed with those steps****

This should solve the problem with strings in the popup.

Please let us know how it goes.

Regards,
Itamar.

June 17, 2025 at 8:47 am #17141422

filipposD

The custom code solved the issue.