Hi,
Is it possible to allow my customers to return to the same area of the page they were at previously? Currently when a customer clicks on the back button, it returns them to the previous page but they have to start at the very top. Hope that makes sense. Thanks for your help.
Never mind, didn’t realize that I needed a back button. I added one and all is well.
1 Like
Hi Sunnydjl,
-
go to Online Store —> Themes
-
Click on Action and duplicate your theme for an Backup.
-
Click on Action again, Edit Code
-
Open your theme.liquid file.
-
Find the following code line (3 lines in total, you just need the middle one. ) Remove the line:
Also remove the third line
-
Press Save
-
Reload your page and try it.
Works also on mobil.
hope that helps.
Reason is, that with this code line some content will not be loaded completely after the page load is done. So if you go to a new page there is no Y-Scroll Position to remember in case if you press the back button.
Have a great day, all my best,
Stefan
1 Like
I had the same issue and removing this specific line of code you mentioned worked! Thank you so much!