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/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 ! :)
For paid 1-on-1 Lay Theme Coaching, contact Audrey (audrey@cyberslayers.work) or me (info@laytheme.com).
We also code custom websites or bespoke Lay features. Drop me a line at info@laytheme.com or check out my work at arminunruh.com.
Want to support my work? paypal.me/arminunruh
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