Forums › Forums › Search & Filter Pro › How to display filter result on the current page like Genres in demo site
- This topic has 10 replies, 2 voices, and was last updated 5 years, 6 months ago by Trevor.
-
Trevor(Private) March 13, 2019 at 2:22 pm #205020
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.Anonymous(Private) March 17, 2019 at 5:39 am #205339Hi,
Thank you for providing the guide for Elementor. I follow the guide and I can now display the filter result on the current page.However, I found some minor problems need to been fixed as follow:
1. My search results were showing very slowly.
2. The post border is stretched, which causes extra white space to appear.
How can I fix the above minor problems?
Thank a lot.Trevor(Private) March 20, 2019 at 1:53 pm #205725The speed with which the results are delivered are a factor of how complex (posts, fields etc) the task is, and the power and efficiency of your server (the physical assets of the server, CPU, memory etc, and the efficiency of the server stack – how well the server software is configured). From within the Search & Filter Pro plugin, there is nothing we can do to aid that.
-
AuthorPosts