Magento Tutorials

How to Add Infinite Scroll and “Back to Top” Button in Magento 2

Hello Magento Folks,

Your visitors’ initial impression of your Magento 2 Store is the appearance of your store. You won’t be able to keep customers in your store if it doesn’t seem appealing. Improving the UI and UX is required to provide consumers with a seamless and enjoyable purchasing experience.

Infinite Scroll for Magento 2 by Magecomp, often known as infinite scrolling, eliminates the need for pagination in your Magento 2 store by offering automated and ongoing loading. The product catalog continues to fill as a visitor goes down your Magento 2 store that makes your store SEO beneficial. Your clients will be delighted by your Magento 2 store’s user-friendly navigation and great performance. Which initially affects your store conversion rate and increases your Magento 2 store revenue.

Benefits of Infinite Scroll and “Back to Top” Button in Magento 2:

  • The Infinite Scroll by Magecomp increases your store performance which directly affects your conversion rates and will increase your Magento 2 store revenue.
  • It will make your Magento 2 store SEO-friendly as your store content will be more easily reachable to your visitors.
  • Add the next button that increases site performance by avoiding auto-loading the next page.
  • The catalog browsing will also be improved because of smooth scrolling throughout the catalog.
  • The Go to Top button will redirect users directly to the top of the page to improve the user experience.
  • The module facilitates the automatic loading of products, preventing reloading the entire page.
  • The store admin can also control the appearance and feel of the buttons.

How to Add Infinite Scroll and “Back to Top” Button in Magento 2

Step 1: To enable the infinite scroll and back to Button property to your Magento 2 store install the Infinite Scroll for Magento 2.

Step 2: Configuration


  • Infinite Scroll: Enable the extension to add Infinite Scroll to your Magento 2 store.
  • Loading Type: Select the Loading type for page scroll from given options of On Button Click or Automatic.
  • Loading Text: Add customized loading text.
  • Loading Image: Add a personalized loading image while the page is loading.
  • Page End Text: Add page end text to show when all your items are loaded.

Step 3: Back To Top and Load Next Button Customization

Back To Top Button 

  • Enabled: Select Yes to add the button to your Magento 2 store.
  • Button Color: Set the button color by adding color code.
  • Button Background Color: Set the button background color.

Load Next Button

  • Label For Next Button: Set the button text from here.
  • Button Color: Set the customized button color.
  • Button Background Color: Set the button background color.

Frontend view of  Infinite Scroll and “Back to Top” Button in Magento 2

The frontend view of page Loading text and image for customers. Also, customers can go to the top of the page with the help of the Back to top button added at end of the page.

Users can click on the next button to load the page.

Last Words

Increase your Magento 2 performance by enabling Magento 2 Infinite Scroll Extension. For 24×7 incessantly support related to Magento Extension avail of our Magento Extension Extended Support Service.

Share this post with your friends and return for more!

Happy Reading!

Click to rate this post!
[Total: 5 Average: 5]
Gaurav Jain

Gaurav Jain is Co-Founder and Adobe Certified Expert-Magento Commerce Business Practitioner. Being Computer Engineer👨‍💻 and possessing Extensive Marketing skills he handles all kinds of customer Queries and his Happy😀 & Helping🙏 Nature makes customer's day Delightful. When he isn’t working, you’ll find Gaurav Reading on Books📖 or Traveling🚗. Also, he is Speaker at Magento Meetups.

Recent Posts

How to Delete Product Variant in a Shopify Remix App using GraphQL Mutations?

Managing a Shopify store efficiently involves keeping your product catalog organized. This includes removing outdated…

55 mins ago

6 Innovative Tools Revolutionizing E-Commerce Operations

E-commerce has transformed the way consumers shop for products and services and interact with businesses.…

2 days ago

How Upcoming Cookie Changes Will Affect Your E-commerce Website?

The e-commerce world is constantly in flux. New tech and strategies emerge daily to help…

2 days ago

Magento 2: How to Add Header and Footer in Checkout

Hello Magento Friends, In today’s blog, we will discuss adding a header and footer to…

3 days ago

Understanding Flexbox Layout in React Native

Hello React Native Friends, Building a visually appealing and responsive mobile app is crucial in…

5 days ago

HYVÄ Themes Releases: 1.3.6 & 1.3.7 – What’s New

We have brought exciting news for Magento store owners. Hyvä Themes recently released 1.3.6 and…

5 days ago