How can I stop the page from positioning top when a tag filter is selected

Solved
RobMoore007
Explorer
122 1 12

Im using the built-in tag filters in OOSB theme Flex for my site https://auchterlonies-com.myshopify.com/ 

pasword: awskob

Each time a tag filter is selected the page refreshes and positions the screen at the top so some of the products aren't visible. See my quick loom video for example https://www.loom.com/share/a9bed632211147ab8574f3b8cad25826

Is there anyway to stop this happening?

Regards
Rob Moore - NEWBY!!
0 Likes
Speedimize
Shopify Partner
292 47 143

This is an accepted solution.

Hi @RobMoore007 

Aibek is here from Speedimize.io 

When you click on the brand names, the filter is triggered and the scroll is triggered at the same time. You can remove this scroll in the file z__jsCollection.js. To do this, find the word scrollToTop in this file and try deleting it http://joxi.ru/J2b9Rv0i0axx8m.

After you delete it, this unwanted scroll should disappear.

To do everything, you need to go to the Online Store->Actions - >Edit Code. Then enter z__jsCollection in the search field http://joxi.ru/12MBOXLIlJq4kA. Open the file and look for scrollToTop. To do this, use hotkey cmd+f or ctrl+f. scrollToTop is in two places, in both places you can delete it.

Or just replace the contents of z__jsCollection.js on this one https://codeshare.io/ax9vdD. Here we have already removed scrollToTop.

We Speedimize your store
Have a problem with speed performance, send me email here: hello@speedimize.io


If our advice was helpful please LIKE or ACCEPT SOLUTION
RobMoore007
Explorer
122 1 12

Thank you so much!  This is worked a treat!!

Regards
Rob Moore - NEWBY!!