back to home from any project should not go back to top at home
-
hi there, i hope i can describe it well. my website: https://www.alex-fritsch-fotografie.de/ is a magazin style scrolling page with different projects. I would like that the website visitors go back to the point of the homepage when they click the "overview" button in the projects. at the moment they start at the top again and i think this could be a bad user experience. how can i solve this? thank you in advance
-
sure
really nice website by the way!!
also since you have many many images on one page you will be happy with an update that will be released in the coming weeks that makes the gridder run much faster with many elements in it!
now to your question:
go to lay options → custom css & html, enter this in "custom <head> content":
<script> jQuery(document).on("click", "a._MENU", function(e){ e.preventDefault(); e.stopPropagation(); window.history.back(); }); </script>
lmk if it worked
-
@arminunruh Hey, thanky for the compliment to my site. appreciate that!
unfortunatly the code dont work. the browser back button work but not the menu button i added to the projects
-
you dont even have this code on your website
-
@arminunruh true, i deleted it bc it was not working for me. I gonna add it now again.
-
very nice! :)
-
@arminunruh btw its not working again^^
-
hm not sure why! i need to work on other things, this is more of a custom code issue sorry
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it