Page 1 of 1
Modal layer popup at once
Posted: Sat Mar 22, 2025 7:15 am
by Biju
I have:
1. A modal layer to popup when index page loads.
2. Text as "Do not show this popup again"
3. A checkbox near to above text.
Need a script to hide the popup layer from showing up each time page loads, if the checkbox enabled.
This behavior should be kept till the browser closed.
Re: Modal layer popup at once
Posted: Sat Mar 22, 2025 7:41 am
by Pablo
Re: Modal layer popup at once
Posted: Sat Mar 22, 2025 7:42 am
by BaconFries
Re: Modal layer popup at once
Posted: Sat Mar 22, 2025 7:49 am
by Biju
There's a template with this functionality.
I copied the script from your above said template. But not working.
Yesterday I sent my project file to your mail. I think you haven't seen it yet.
Re: Modal layer popup at once
Posted: Sat Mar 22, 2025 7:50 am
by Biju
You mean like the following:
Yes BF.
Re: Modal layer popup at once
Posted: Sat Mar 22, 2025 8:20 am
by Pablo
Did you make sure the ID of the popup in the script is correct?
Re: Modal layer popup at once
Posted: Sat Mar 22, 2025 8:26 am
by Biju
Attaching my project file
HERE
Re: Modal layer popup at once
Posted: Sat Mar 22, 2025 8:35 am
by Pablo
jQuery is missing.
To solve this, either add another object to the page that uses jQuery
or
add '$JQUERY$' to the HTML object's resources.
Re: Modal layer popup at once
Posted: Sat Mar 22, 2025 9:42 am
by Biju
I added another modal layer with type jQuery, no close button and colour as transparent.
But still not working.
Re: Modal layer popup at once
Posted: Sat Mar 22, 2025 11:08 am
by Pablo
Please add $JQUERY$ to the resources of the HTML object.
Re: Modal layer popup at once
Posted: Sat Mar 22, 2025 5:04 pm
by Biju
Please add $JQUERY$ to the resources of the HTML object.
Sorry! I don't know how to do it.
Can someone help me please?
Re: Modal layer popup at once
Posted: Sat Mar 22, 2025 5:56 pm
by Pablo
Step 1
Click the 'Resources' button
Step 2
Copy/Paste
Note that in general, we do not provide support for custom code.
When using custom code it is assumed that you know what you are doing.
Re: Modal layer popup at once
Posted: Sun Mar 23, 2025 10:28 pm
by MGD4me
Re:
I was looking for a script similar to the above, to display a one-time popup message. I opened up the "Dark Agency" template, but I don't see where this (pop-up) layer is located. The template is from WWB ver 16 days, so is there a more current version of the template?
I'm on WWB ver 20.
Thanks
Re: Modal layer popup at once
Posted: Sun Mar 23, 2025 11:37 pm
by BaconFries
The template is still valid for WWB20 even although it is from WWB16. You would need to dig deep in the HTML to see how it works as it uses a "Bespoke" custom script with the already available dialog in WWB20 or at the time of WWB16
Alternatively there is the following that is a onetime.
Cookie Policy
Re: Modal layer popup at once
Posted: Mon Mar 24, 2025 12:40 am
by MGD4me
Okay, will do.
Thanks!!
Re: Modal layer popup at once
Posted: Mon Mar 24, 2025 6:13 am
by Biju
MGD4me wrote: ↑Sun Mar 23, 2025 10:28 pm
Re:
I was looking for a script similar to the above, to display a one-time popup message. I opened up the "Dark Agency" template, but I don't see where this (pop-up) layer is located. The template is from WWB ver 16 days, so is there a more current version of the template?
I'm on WWB ver 20.
Thanks
here it is:

Re: Modal layer popup at once
Posted: Mon Mar 24, 2025 6:43 am
by Biju
Pablo wrote: ↑Sat Mar 22, 2025 5:56 pm
Step 1
Click the 'Resources' button
Step 2
Copy/Paste
Note that in general, we do not provide support for custom code.
When using custom code it is assumed that you know what you are doing.
I tried but still not working.
It seems that works with
dialog only.
Re: Modal layer popup at once
Posted: Mon Mar 24, 2025 7:00 am
by Pablo
The script is designed to be used with the dialog as demonstrated in the Agent Dark template.
If you want to use it in a different context then you will need to adapt the script.
Re: Modal layer popup at once
Posted: Mon Mar 24, 2025 7:24 am
by Biju
Thanks Pablo for your immediate response.
I think all your templates with popup use dialog.
Can you do a template with modal layer to popup at once, if you don't mind and time permits?
It will be a great help.
Re: Modal layer popup at once
Posted: Mon Mar 24, 2025 7:57 am
by Pablo
I generally only create new templates once a year, when a new version is released.
Maybe you can use the dialog instead?
Re: Modal layer popup at once
Posted: Mon Mar 24, 2025 8:34 pm
by MGD4me
@BaconFries...
Thanks for your ongoing support. I finally got everything figured out!
It wasn't until I zoomed the workspace from 100% to about 75%, that I could found the Privacy Notice, which was located outside the viewport. Then, everything became apparent.
As it turns out, the Dialogue feature (as Pablo mentioned) is all I need, so that is the route I ended up taking.
https://www.wysiwygwebbuilder.com/dialog.html
Mystery solved!
