Site title as reload button for one page website
-
Hello,
im currently building a very simple one pager with three anchors to jump to in the menu.
As an alternative to the "back to top"-button at the end of the page i'd like to use the site title as a reload/refresh button. From what I understand the refresh function on the homepage is disabled. I'd be happy if you could point me to some work around on that problem.I found a post with quite the similar problem I think, but sadly no suggested solution there (http://laythemeforum.com:4567/topic/656/site-title-link-only-works-once-on-homepage/6).
This is the link to the site im talking about: http://wendelstein-steuerberatung.de
Im really looking forward to your answer.
Best, Miriam -
hi @miriamb, you can customize the code from your suggested link to this:
<script> jQuery(document).on("click", ".sitetitle", function(event) { window.scrollTo(0, 0); }); </script>
-
Thanks @fr ! :)
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