How to add a back-to-top button to Shopify for free

On a long collection or product page, the menu, search and cart are a long scroll away. A back-to-top button brings shoppers back in one tap.

When a back-to-top button helps

  • Collections with many products, especially with infinite scroll or a Load More button.
  • Long product pages with reviews, size guides and recommendations.
  • Mobile shoppers, for whom scrolling back up takes many swipes.

Add one in a few minutes

  1. Install the app. Add Infinityfy from the Shopify App Store. The back-to-top button is on the Free plan, with no subscription.
  2. 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.
  3. Enable Scroll to Top. Open the app and turn the feature on.
  4. Style it. Pick one of three icons, choose the bottom-left or bottom-right corner, and set the size, shape and colours. A live preview shows the result as you go.
  5. Save. Open your store, scroll down, and the button appears.

Tips for a good button

  • Keep it out of the way. If you have a chat widget in the bottom-right corner, put the button on the left.
  • Make it easy to tap. Around 44 px or larger works well on phones.
  • Match your brand. Use your accent colour so it looks like part of the theme, not an add-on.

See everything you can change on the Scroll to Top feature page.

Try it on your own store.

Install Infinityfy, switch on the app embed and choose your features. The back-to-top button is free.