WPML

Overview of the Issue

If you are using Premmerce Permalink Manager for WooCommerce and Elementor, you will notice that if you create a new product or edit an existing product and set a custom product permalink structure, Elementor will open it in a Safe Mode.

Workaround

Please make a full backup of your site before you start.

Add this code to your theme’s functions.php file. It stops WPML from redirecting Elementor’s preview request; normal visits to the old product address still redirect.

// WPML workaround for compsupp-6358: let the Elementor preview load without WPML's redirect.
add_filter( 'wpml_is_redirected', function ( $redirect ) {
	return isset( $_GET['elementor-preview'] ) ? false : $redirect;
} );

Need Help with This Issue?

Ask a support question and we’ll look into it with you.

Ask a support question

All known issues