Forums Forums Search & Filter Pro S&FP + Elementor PRO, result search template.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Anonymous
    #206417

    Hello! I am using elementor and I can not make the search result work, but I am guided step by step. I appreciate it!
    regards

    Trevor
    #206443

    Did you follow our guide for Elementor:

    https://searchandfilter.com/documentation/3rd-party/elementor/

    Even if you do not have Masonry enabled (it might not even be an option), use the guide for Masonry & Ajax, but, instead of this code:

    (function ( $ ) {
    	"use strict";
    	
    	// detects when the ajax request has finished and the content has been updated
    	// re-init the layout scripts from Elementor
    	$(document).on("sf:ajaxfinish", ".searchandfilter", function(){
    		elementorFrontend.init();
    	});
    	
    }(jQuery));

    Use this code:

    (function ( $ ) {
    	"use strict";
    	
    	// detects when the ajax request has finished and the content has been updated
    	// re-init the layout scripts from Elementor
    	$(document).on("sf:ajaxfinish", ".searchandfilter", function(){
    		elementorFrontend.hooks.doAction('frontend/element_ready/posts.classic', jQuery('.elementor-widget-posts'));
    	});
    	
    }(jQuery));

    Note, if you are placing the code inline on the page (in a widget), it needs the <script>.....</script> tags around it.

Viewing 2 posts - 1 through 2 (of 2 total)