This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Elementor

#34146
Ernest MarcinkoErnest Marcinko
Keymaster

If that is the case, we may have a bypass solution, until the next release is out. This is based on the actual solution, so it might be a great way of testing it:

add_action('wp_footer', 'wp_footer_elementor_fix_initial_results', 9999);
function wp_footer_elementor_fix_initial_results() {
	?>
	<script>
	(function($){
		let initialElementorHTML = $('body').html();
		wp.hooks.addFilter('asp_live_load_html', 'asp', function(html, id, inst){
			if ( ASP.api(id, inst, "filtersInitial") ) {
				return initialElementorHTML;
			}
			return html;
		}, 10);
	})(jQuery);
	</script>
	<?php
}

Try adding this code to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.