Forums › Forums › Search & Filter Pro › Infinite Scroll only works after interaction
Tagged: infinite scroll, initial page
- This topic has 12 replies, 2 voices, and was last updated 3 years, 12 months ago by Trevor.
-
Anonymous(Private) December 1, 2020 at 4:06 pm #268418
Hi, I have a search page created using a shortcode and the initial page only shows the first 10 results with no infinite scroll. Once you interact with the form, it works just fine, so I can go back to “all categories” and now the infinite scroll will work, but how can I make it work on initial load?
Trevor(Private) December 1, 2020 at 4:23 pm #268421In 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 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
If that was not the issue, are you able to send me a live link/URL to your search page so I can take a look?
Trevor(Private) December 1, 2020 at 5:34 pm #268441I can see nothing wrong with the form settings, nor the results.php file. Can you try disabling WPBakery Pagebuilder, and make a page with just the two shortcodes on, which is the most basic way it can be made? I have a feeling something is causing a JavaScript conflict.
Note that, when fixed and WPBakery is enabled again, if you have a problem with the Page Builder shortcodes displaying, there is a way to fix that (I showed it to another user only a few days ago).
It is late here in the UK, so any further replies will be tomorrow, sorry.
Anonymous(Private) December 1, 2020 at 5:38 pm #268443Okay thanks. I know it’s not WPbakery because I have used this exact set up on a different site and it loads perfectly there. I will just try other plugins to see if there’s a conflict. I will copy it to a staging server so I can turn everything off and play around. Will let you know if I figure it out.
Trevor(Private) December 1, 2020 at 5:39 pm #268445OK, I will wait to hear from you. You do know we have an integration extension plugin for WPBakery?
https://searchandfilter.com/documentation/3rd-party/wpbakery-page-builder-formerly-visual-composer/
-
AuthorPosts