history back button
-
Re: history back button
hello, I want to add a history back link. i don’t know any js, so this old post and what i found in the documentation for "binding click events" is not helping me. can you guide me trough the steps? -
hi
can u try this
put this in lay options -> custom css & html -> custom <head> content:<script> jQuery(document).on("click", ".back", function(event) { event.preventDefault(); event.stopPropagation(); history.back(); }); </script> <style> .back{ cursor: pointer; } </style>
now in the gridder edit a text, open the code editor in the text and then on any html element add the class "back"
so for example:
<p class="back">hello</p>
or right click an element in the gridder, choose set html class and id
and as a class add
back
-
@arminunruh works perfectly, thanks a lot!
I don't answer or check forum DMs, please just post on the forum.
Before you post:
Use the Search Feature. Maybe there is already a solution to your issue.
1. Update Lay Theme and all Lay Theme Addons
2. Disable all Plugins
3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
4. Now see if your problem solved itself
5. Go here, see if your problem is listed here:
Troubleshooting
When you post:
1. Post a link to where the problem is
2. If the problem is difficult to explain, post screenshots / link to a video to explain it