Forums › Forums › Search & Filter Pro › Pagination not working for me in Elementor Pro
Tagged: elementor pro, pagination
- This topic has 7 replies, 2 voices, and was last updated 6 years, 1 month ago by Anonymous.
-
Anonymous(Private) October 11, 2018 at 12:00 pm #190730
Hi there, I’m using Search & Filter Pro in conjunction with the Elementor Pro “Posts” element. I have followed the instructions here: https://searchandfilter.com/documentation/3rd-party/elementor/ and it is working well, except the pagination links… When you click for page 2 or “Nexr”, etc… it doesn’t actually load new posts, just returns to the top of the page. Hoping you can help.
The page is: https://www.threeamigos.ca/inventory/
Theme: Astra
Plugins in use: ACF Pro, Custom Post Type UI, Elementor Pro, Gravity Forms, WP All ImportThanks for your help!
Trevor(Private) October 11, 2018 at 3:26 pm #190770If you are using this code from our documentation:
(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));
It needs to be changed to:
(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));
Can you try that?
-
AuthorPosts