Forums › Forums › Search & Filter Pro › Infinite Scroll not working.
- This topic has 53 replies, 3 voices, and was last updated 5 years, 1 month ago by
Anonymous.
-
Ross Moderator(Private) July 28, 2020 at 3:55 pm #254146
Hi Chuck
I just unset “infinite scroll container”, and it seems to work?
I see that there are two loading icons, which seem to be a bit buggy – I guess you were going to make your own loader?
If so, I would recommend using our Javascript events (
sf:ajaxstart
andsf:ajaxfinish
) to detect when more results are being loaded, to show/hide your own customised loader:
https://searchandfilter.com/documentation/faq/#will-my-lightbox-or-other-javascript-work-with-this-plugin
https://wpbeaches.com/adding-a-loading-icon-spinner-on-search-filter-pro-archive-page/Thanks
Anonymous(Private) July 28, 2020 at 4:13 pm #254156Hi Ross,
Thanks for your support.
One final question i have used the jetpack plugin, when i select the third option(Load more posts as the reader scrolls down), infinite scroll is not working in the search and filter plugin please refer the below screenshot.
https://www.screencast.com/t/nDBjsmFJa
Only infinite scroll after changing the option to (Load more posts using the default theme behavior) in the jetpack plugin.
Is there any option to stop the jetpack scripts in the specific page.
Thanks
Ross Moderator(Private) July 28, 2020 at 4:24 pm #254164Hi Chuck
Yeah we’d like to add support for this, but it won’t be happening for a while.
All plugins that register Javascript on the frontend of the site, can have their files removed from specific pages.
So you would probably want to use a combination of:
1) wp_dequeue_script – https://developer.wordpress.org/reference/functions/wp_dequeue_script/
2) and only do that if – is_post_type_archive(“photos”) – https://developer.wordpress.org/reference/functions/is_post_type_archive/However, you will need to find the right names of the scripts, so you can use
wp_dequeue_script
script – it might be worth contacting themPS this might help point you in the right direction:
https://crunchify.com/how-to-stop-loading-jetpack-css-and-devicepx-jetpack-js-files-on-wordpress-site/Best
-
AuthorPosts