Site title as scroll to top
-
no theres no way to do that i think :)
maybe if you write your own custom javascript for it!
i dont have time to do this :/ -
ah nevermind, i got some time, i think this should work!
put it in "custom html at bottom" in lay options → custom css & html!<script> jQuery(".sitetitle, .mobile-title").click(function(e){ e.preventDefault(); window.scrollTo({ top: 0, behavior: 'smooth' }); }) </script> -
ah nevermind, i got some time, i think this should work!
put it in "custom html at bottom" in lay options → custom css & html!<script> jQuery(".sitetitle, .mobile-title").click(function(e){ e.preventDefault(); window.scrollTo({ top: 0, behavior: 'smooth' }); }) </script>@arminunruh THANK YOU SO MUCH!!! It works perfectly!
Thank you for your time and help, it's really appreciated :) -
aha im glad it works for you! actually this is a pretty cool feature!
-
A arminunruh referenced this topic on
-
A arminunruh referenced this topic on
-
A arminunruh referenced this topic on
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