This thread is resolved. Here is a description of the problem and solution.
Problem:
When linking to popups in Elementor, the links revert to the original language version each time the page or its translations are updated.
Solution:
We identified that this issue might be related to caching in Elementor. Clearing the cache in Elementor > Tools might temporarily resolve the display issues. However, for a more permanent fix, consider recreating the buttons that trigger the popups on your pages. Additionally, we have provided a workaround involving adding specific code to your functions.php file:
/** * Convert the popup link in a container * compsupp-7641 workaround */ add_filter( 'wpml_pb_elementor_widget_dynamic_id_converters', function( $converters ) { $isContainer = \WPML\FP\Relation::propEq( 'elType', 'container' ); $containerLinksLens = \WPML\FP\compose( \WPML\FP\Obj::lensProp( 'settings' ), \WPML\FP\Obj::lensPath( [ '__dynamic__', 'link' ] ) ); return array_merge( $converters, [ [ $isContainer, $containerLinksLens, 'popup', 'popup' ], ] ); } );
Please ensure to back up your site before applying this code. If this solution does not resolve your issue or becomes irrelevant due to updates, we 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 issues persist, 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.
This topic contains 17 replies, has 2 voices.
Last updated by 11 months, 1 week ago.
Assisted by: Kor.