Looking for support? You can access the support system via your account.
- This topic has 12 replies, 2 voices, and was last updated 3 years, 4 months ago by .
The topic ‘Infinite Scroll only works after interaction’ is closed to new replies.
Looking for support? You can access the support system via your account.
Forums › Forums › Search & Filter Pro › Infinite Scroll only works after interaction
Tagged: infinite scroll, initial page
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?
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 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?
Can you return results.php and the form back to their initial infinite scroll state so I can look at them that way?
I 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.
Okay 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.
OK, 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/
The topic ‘Infinite Scroll only works after interaction’ is closed to new replies.
© 2024 Search & Filter Support. All Rights Reserved.
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
We also use cookies to store items in your cart as well as allowing your to login on the site.
You can adjust all of your cookie settings by navigating the tabs on the left hand side.
By continuing to use this site, you also agree to our Privacy Policy.
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
*Other cookies used for logging in and cart functions will only be used when you use those features and cannot be disabled.
If you disable these cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.
Keeping this cookie enabled helps us to improve our website.
Please enable Strictly Necessary Cookies first so that we can save your preferences!
More information about our Cookie Policy