How to add infinite scroll to a Shopify store without code
Shopify themes paginate collections by default. Here is how to replace the "Next page" links with products that load as shoppers scroll, without editing a single theme file.
Two ways to do it
You can edit your theme's code, or you can use an app. Editing code means changing the collection template and adding JavaScript that fetches the next page and appends its products. It works, but the changes have to be redone or checked whenever you update or switch themes.
An app that installs as a theme app embed avoids that. Nothing is written into your theme files, and turning the embed off removes it completely. The steps below use Infinityfy.
Step by step
- Install the app. Add Infinityfy from the Shopify App Store. Infinite scroll is part of the Full Plan, which starts with a 7-day free trial.
- Turn on the app embed. In your Shopify admin go to Online Store, then Themes, then Customize. Open App embeds, switch on Infinityfy and save.
- Enable Infinite Scroll. Open the app, go to the Infinite Scroll tab and turn it on.
- Style the loader. Choose one of six loader animations and set its colour, the loading text and the font so it matches your store.
- Save and test. Open a collection with more than one page of products and scroll to the end of the grid. The next products should load on their own.
If products do not load
Infinite scroll needs to know three things about your theme: where the product grid is, what one product item looks like, and where the pagination is. The defaults match Dawn. On other themes, set the three CSS selectors in the Infinite Scroll tab. If you are not sure what they are, contact support through the live chat and we will help you find them.
Also check that the collection has more products than fit on one page. With a single page there is nothing more to load.
Make it better for shoppers
- Add a back-to-top button so the menu and filters are one tap away. It is free.
- Turn on Saved Position so shoppers return to the same spot after viewing a product.
- Turn on lazy load so images further down the page do not slow the first screen.
Not sure infinite scroll is right for your catalogue? Read infinite scroll vs Load More vs pagination.