Hi, I need users to select options in the lightbox, so I have my own button, which submits the data and closes the lightbox.
I have disabled the default closing (X) button and disabled the background overlay for closing as well. However there is still option of pressing ESC on the keyboard and the lightbox closes itself. I need to prevent this.
Maybe you didn’t set it to be at the body end or maybe you didn’t apply it to the lightbox (where you select the page for this code, you can select the lightbox itself).
Anyway, if it works with SITE_CONTAINER that may be even better.
Oh, I didnt realize I can select the lightbox as a specific page for script to be applied to. In that case your solution is indeed 100% correct. Thank you.