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

Reply To: Elementor Search Results Page

#37599
Ernest MarcinkoErnest Marcinko
Keymaster

But you have sent this URL: http://yates.mallorcawebdesign.de/yates-de-motor/
..and that is not the search results page. I was checking that. So that is the issue then, you were editing the wrong page.

Also, I noticed from the source that there might be a 3rd party addon used with Elementor (ECS I think?). That will still probably work, but I recommend a small custom code snippet to make sure the elementor frontend is reinitialized after live search call.

This may not be needed, but if you notice a white screen, or missing results, or a gap of some sort, then I strongly recommend it:

add_action('wp_footer', 'asp_add_footer_script', 9999);
function asp_add_footer_script() {
	?>
	<script>
	(function($){
		$(".asp_main_container").on("asp_elementor_results", function() { 
			window.elementorFrontend.init()
		});
	}(WPD.dom))
	</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.

Please note, that we can not guarantee everything will work just fine when using 3rd party elementor additions, those usually alter the layout and the output.