Skip to content
Available for new work
Pages in Infinite Scroll

GuideFree

The Infinite Scroll widget for Magento 2

Add infinite scroll to any list on a CMS page, static block, Page Builder or layout XML. Every widget parameter explained, with screenshots.

Updated 16 November 2026Back to the package page

The category and search pages are attached for you. For every other list, use the Infinite Scroll (CoullWorks) widget. It works whether or not Enable Infinite Scroll is on, and it needs a list that has a "next" link to follow (a product list with the toolbar pager, for example).

Add the widget#

To add it as a standalone widget instance (layout widget):

  1. Go to Content, Elements, Widgets and press Add Widget.
  2. Set Type to Infinite Scroll (CoullWorks) and Design Theme to your theme, then Continue.

The Add Widget settings with Type Infinite Scroll (CoullWorks) and Design Theme Magento Luma

The widget type appears in the Type list. The theme decides which design the instance is for.

  1. On Storefront Properties give it a Widget Title and choose Assign to Store Views.

Storefront Properties with a widget title and the store view list

The title is only for you. Pick the store views the widget should run on.

  1. Add a Layout Update to place it on a page, then fill in Widget Options below and Save.

To insert it in a CMS page, static block or Page Builder: in the editor press Insert Widget, choose Infinite Scroll (CoullWorks) and fill in the same options. In Page Builder add an HTML Code or Products area and use the editor's Insert Widget button; the module does not add a separate Page Builder content type. Layout XML works too, with a <block class="CoullWorks\CatalogInfiniteScroll\Block\Widget\Scroll"> and the parameters as arguments.

The CMS page below runs the widget on a product list inside its content.

A CMS page with a product list controlled by the widget

The page before scrolling: the list and its own pager.

The same CMS page after the next pages loaded in

After scrolling, more products from the widget's list have been added in place.

The CMS page at phone width

At 390 px wide the widget uses the View More behaviour.

Widget options#

The Widget Options form

The Widget Options tab. Fields with a red star are required.

Fields not filled in fall back to the store configuration where noted.

List Container Selector#

The Widget Options form with List Container Selector at the top

List Container Selector is the first, required field.

Required. A CSS selector for the wrapper that holds the items, for example .products.list.items or [data-content-type="products"] .product-items. Comma separate for several lists. Leave it empty in the form only if the store configuration already names the right list (the form still marks it required).

The List Container Selector parameter

Container selector with its help text and example selectors.

Item Selector#

Required. One item inside the container. Preset: .item.product.product-item.

Next Button Selector#

Required. The pagination "next" link. Preset: .pages-item-next .action.next.

Layout Mode#

The Widget Options form showing Layout Mode

Layout Mode is the fourth field, a drop-down.

Required. Default (theme grid), Masonry, Isotope or Packery. See Layout modes.

The widget's Layout Mode parameter

Layout Mode set to Default (theme grid).

Load On Scroll#

Required. Yes loads on scroll, No uses the View More button. A stored No overrides the store configuration.

Hide Pagination#

Optional. Yes hides the original pager.

Pagination Selector#

Optional. The pager to hide. Preset .pages, which differs from the store configuration default, so check it matches your list.

Show End Status#

Optional. The loading animation and end message. See the pending note on End Status.

End Status Text#

Optional. Preset text is "No more items" (the store configuration default is "No more products").

Scroll Threshold, Track Virtual Pageviews, Update Browser URL, Debug Logging#

Since 2.1.0 the widget has its own parameters for these four. Leave them empty, or on Use store setting, and the widget follows the store configuration. In 2.0.x these four were not widget parameters and widgets always used the store configuration.

The widget's Scroll Threshold parameter, empty so the store setting is used

Scroll Threshold (px) is empty, so the store configuration value is used.

Available for new work

UK based · PHP · Python · JS · TS. Every first call is free.