Make Intro Section Non-Clickable
-
Hi, is it possible to add an option to make the intro section non-clickable? I want the intro to stay visible but prevent any clicks.
Thanks!
-
hey!
add this in:
lay options -> custom css & html -> custom css#intro-region{
pointer-events: none;
} -
Thanks for your feedback. Of course, I tried that and other things, but with pointers events none, the click goes behind the intro and I only have clickable elements behind it.
-
ah use instead:
body.intro-enabled *{
pointer-events: none;
} -
Perfect thanks 🦦
-
And to prevent scrolling as well? I also tried that, but I think I can’t target the right selector.
-
html:has(.intro-enabled){
overflow: hidden;
}this should work!
-
perfect thanks Armin !
-
looks great imo : https://latissutheque.net/
-
Yes, very good job. I'm going to post it now! i forgot
I also code custom websites or custom Lay features.
💿 Email me here: 💿
info@laytheme.com
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