Forums › Forums › Search & Filter Pro › Infinite scroll issue
- This topic has 30 replies, 4 voices, and was last updated 3 years, 10 months ago by Ross.
-
Anonymous(Private) January 7, 2021 at 5:35 pm #271973
Hi have installed search and filter pro plugin on a site and using the short-code setting for the filter section and would like to use infinite scroll.
I have updated to infinite scroll in the CMS and also used the correct infinite scroll template provided to build the content loop.
When scrolling to the bottom of the page the infinite scroll does not fire at all.
I am not seeing any console log errors, tried to remove all plugins to rule out conflicts with others and still no luck.
I have checked the JS and it shows that max_paged is set to false and is changed to true but this does not fire with console logs added to the js to debug.
Any help with getting this working would be great.
Kind regards
Trevor(Private) January 8, 2021 at 9:47 am #272027Great. I got those, and that prompts a first question.
In the Search & Filter plugin folder, in the subfolder named templates, are two files. Normal pagination template is
results.php
, and there is another for infinite scroll, with a similar but different structure.Which one did you use?
Whichever one you used, you need to first follow our guide when doing that:
https://searchandfilter.com/documentation/search-results/using-a-shortcode/#customising-the-results
The file must be renamed to either results.php or {the number of the form ID}.php
What you should have done (and maybe did not) is to copy the
results-infinite-scroll.php
template file to your child themesearch-filter
folder, and then rename that copied file toresults.php
Anonymous(Private) January 8, 2021 at 9:51 am #272029Hi trevor
I have used the shortcode and created the relevant sub folder in the theme for search-filter and used the results.php template initially when creating the loop. When I wanted to activate infinite scroll I copied the infinite scroll template php file and used this instead.
I can send a copy of the template i have created if required?
Kind regards
-
AuthorPosts