Page 1 of 1

Pop up layer with 50% transparent background (an issue)

Posted: Thu Feb 24, 2022 8:23 am
by longman
Hi guys,

I made a pop up layer (over page contents) with semi-transparent background over the page content, however, i want it not to disappear, but when i click on the semi transparent background, it all disappears. How to prevent it?

I need to keep pop up layout + semi transparent background, to be shown to visitors, without it disappearing at all.

I want this for an expired content page, however, I wish the visitor still see the content below the semi transparent background.

I have uploaded the WP test/example file https://ufile.io/hhjaj3y2

Hope you can help!

Thanks!

Re: Pop up layer with 50% transparent background (an issue)

Posted: Thu Feb 24, 2022 9:50 am
by Pablo
You can add this attribute to the layer:

Code: Select all

data-backdrop="static" 
More details (static backdrop)
https://getbootstrap.com/docs/4.4/components/modal/

Re: Pop up layer with 50% transparent background (an issue)

Posted: Thu Feb 24, 2022 10:09 am
by longman
Thanks Pablo, worked like a charm!