Shopify themes, liquid, logos, and UX
Hi
I have pagination on my website but it doesn't load to the top when shifting from one page to the other. Like when going to the page 2 of any collection, product page, it stays where the person clicks and use has to scroll to the top to start browsing the products.
I know something must be done with code but not sure what to do. I want it to scroll to top automatically like every good store has.
Here is link of the website: https://planetjunior.pk/collections/toys
Hi,
Just wondering if you ever figured this out? I have a similar issue that would involve code related to the pagination links. Would love to hear any insight you've discovered.
Hello,
I am using the Ride Theme and this worked for me. > www.whitetailheadquarters.com
Steps:
Go to the Shopify Admin:
Navigate to Online Store:
Edit Code:
Update JavaScript Code:
Save the Changes:
This script uses a MutationObserver to watch for changes in the pagination container and reattaches the scroll-to-top behavior dynamically whenever the pagination links are updated.
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025