Closing the "Overlay" feature by clicking anywhere
General Discussion
6
Posts
2
Posters
569
Views
2
Watching
-
yes you can enable this:

clicking on that background should close it
-
Hi Armin,
It works, but not in my case :) I don't know how I could apply this along with centering the menu...
Check this (overlay is a menu):
https://mintcream-pigeon-114810.hostingersite.com -
oh, your overlay is 100% width and 100% height
so this setting doesn't apply here:

basically the background you mean is the background of the overlay layout that you set to transparent here:

let me think about it
-
<script> jQuery(document).on('click', '#lay-overlays .lay-content', function(e){ jQuery(e.target.closest('.lay-overlay')).find('.overlay-close').click(); }) </script>this closes the overlay whenever you click on anything inside the overlay
put it in lay options → custom css & html → custom <head> contentthis only works if you have the X close icon activated for your overlay
Online Users
Forgot your key, lost your files, need a previous Lay Theme or Addon version?
Go to www.laykeymanager.com