Scroll position restoration not working as expected.
-
whats the website url?
-
Thanks for the quick reply. Here's the URL: http://patrick-desbrosses.com/
-
This post is deleted!
-
-
can you send your website address, /wp-admin/ username and password and a link to this topic to info@laytheme.com?
-
ah nevermind
can you update lay theme now?
then it should be fixedi just released a fix for it
anyways, your lay theme version is quite outdated, please always read the blue boxes on the right and do these steps in there
-
Hey hey,
thanks for the update. I've installed the patch and the problem seems mostly solved.
When using the site’s or the browser’s back button, navigation works as expected, the browsers returns to the previous scroll position. When clicking the home link (top left) however, the frontpage loads at some random scroll position. The same happens when reloading the frontpage.
Here’s a video showing the issue: https://drive.google.com/file/d/1eioLdKKg6C9ii18iHyPFCfZbj-DvnFi7/view?usp=sharing
I've tried disabling all custom code, clearing the cache, etc.
-
please disable all of your custom code and try again
lay options → custom html & css → turn off all
im pretty sure your custom code just pushes down the whole site, probably there is some big div that is position relative and then you set it to position absolute or fixed after the html has rendered
when using the back button, the previous scroll position will be restored
however, when just using a link to the frontpage, the scroll position will be 0
if u want the back button to restore scroll position, it should use history back:
https://developer.mozilla.org/en-US/docs/Web/API/History/back -
-
yea please always check the blue box "before you post"
nice website!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login