Comments on: How to create a Divi Pop-Up Overlay without a plugin using the Divi Builder https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/ Boost the power of your Divi website Fri, 17 Nov 2023 12:29:01 +0000 hourly 1 https://wordpress.org/?v=6.5.4 By: AbelMRP https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-239342 Fri, 29 Sep 2023 23:01:01 +0000 https://diviengine.com/?p=47518#comment-239342 In reply to AbelMRP.

Ok, I don’t know if this was a test by Peter 🙂 but I found the fix for my case:
I removed the display:none; for the .popup-overlay and added the position: absolute; to it. Then I’ve added the position: fixed; to the .popup-overlay.show. Now it fixes the overlay when showed, and respect the absolute z-index of -9999, which was being ignored somehow!

I my case this was the solution.

.pop-up-overlay {
/* display: none; */
position: absolute;
top: 0;
width: 100%;
height: 100vh;
z-index: -9999;
justify-content: center;
align-items: center;
opacity: 0;
overflow: hidden;
transition: opacity 0.4s ease;
-moz-transition: opacity 0.4s ease;
-webkit-transition: opacity 0.4s ease;
}

.popup-overlay.show {
display: flex;
opacity: 1;
position: fixed;
z-index: 9999;
cursor: pointer !important;
backdrop-filter: grayscale(100%) blur(5px);
-moz-backdrop-filter: grayscale(100%) blur(5px);
-webkit-backdrop-filter: grayscale(100%) blur(5px);
}

As always thank you for all Peter’s knowledge share.

]]>
By: AbelMRP https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-239170 Tue, 26 Sep 2023 09:40:59 +0000 https://diviengine.com/?p=47518#comment-239170 In reply to AbelMRP.

But I also noticed that if I don’t have the display: none; then it will stay over every other divs! So what could be the fix here?

]]>
By: AbelMRP https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-239093 Sat, 23 Sep 2023 21:35:46 +0000 https://diviengine.com/?p=47518#comment-239093 Hi.

Thank you Peter for all your efforts on helping the community.

I’ve followed your code and noticed that for some cases the transitions might not work since the display of .popup-overlay is set to none.
So I’ve commented it and the fades worked.

AMP.

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-220755 Wed, 18 Jan 2023 23:34:03 +0000 https://diviengine.com/?p=47518#comment-220755 In reply to Rafael.

Can you send me a URL so I can try see and help with CSS – it would be an overflow-y: auto CSS

]]>
By: Rafael https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-220723 Wed, 18 Jan 2023 16:54:15 +0000 https://diviengine.com/?p=47518#comment-220723 This is a great tutorial. Well explained. Thank you very much, it worked just fine.

I’m just struggling now to find a solution to be able to have this overlay and a scroll down possible in case the content is too big to show in just one screen. For example one long form.

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-219329 Tue, 03 Jan 2023 09:41:08 +0000 https://diviengine.com/?p=47518#comment-219329 In reply to Lucas.

Hi Lucas!

Thanks for the kind words. You could try setting the position to Absolute and then give it explicit Top and Right values.

If that does not work, maybe try the transform settings on the design tab and position it to the top/right.

Hope this helps!

]]>
By: Lucas https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-219268 Mon, 02 Jan 2023 08:48:23 +0000 https://diviengine.com/?p=47518#comment-219268 Hey, great tutorial!

Is there also a way to display the form in the top-right corner, right underneath the header?

I tried it using display: fixed and with top and right properties, but couldn’t make it work 🙂

Best (and happy new year!),

Lucas

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-211537 Wed, 26 Oct 2022 13:53:09 +0000 https://diviengine.com/?p=47518#comment-211537 In reply to Jon Hayward-Crichton.

Thanks, added it back 😀

]]>
By: Jon Hayward-Crichton https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-211520 Wed, 26 Oct 2022 11:01:23 +0000 https://diviengine.com/?p=47518#comment-211520 In your CSS code for .popup-overlay at the end you are missing display:none which means the block appears as part of the page.

You might want to add that back in. Fortunately watching your video showed me what I was missing and where.

]]>
By: Kay https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-199200 Mon, 27 Jun 2022 07:53:12 +0000 https://diviengine.com/?p=47518#comment-199200 The button isn’t working for me on mobile. Any idea where I might be going wrong?

]]>
By: Agustín https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-194168 Tue, 26 Apr 2022 21:23:50 +0000 https://diviengine.com/?p=47518#comment-194168 Is it possible to open the modal on load?

]]>
By: Angel V. https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-192573 Fri, 08 Apr 2022 00:27:04 +0000 https://diviengine.com/?p=47518#comment-192573 In reply to Divi Engine.

I am a total newb at this and need your help with stopping the video when I close the lightbox. Should I add the video in as a Video Module or Code Module and then include the ID? And for the JQuery part how is this written out. Hope you can answer my question when you have a moment.

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-191052 Fri, 18 Mar 2022 13:59:06 +0000 https://diviengine.com/?p=47518#comment-191052 In reply to Amy.

Send me a link to the website so I can see please?

]]>
By: Amy https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-191009 Thu, 17 Mar 2022 19:19:14 +0000 https://diviengine.com/?p=47518#comment-191009 Great – just what I needed. Unfortunately, this isn’t mobile-responsive. The box is completely cut off when I access the site from a mobile device. Any suggestions?

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-190957 Thu, 17 Mar 2022 09:44:47 +0000 https://diviengine.com/?p=47518#comment-190957 In reply to Jan.

Amazing – thanks so much for this! Glad you sorted it

]]>
By: Jan https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-190916 Wed, 16 Mar 2022 16:41:12 +0000 https://diviengine.com/?p=47518#comment-190916 In reply to Jan.

Actually just figured it out. Gave the class popup-content to the row instead of the column.

]]>
By: Jan https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-190915 Wed, 16 Mar 2022 16:21:21 +0000 https://diviengine.com/?p=47518#comment-190915 Great Code! I can’t get the X Button to work though. It appears and mouse changes to pointer, but clicking on it does not do anything. Thanks!

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-189729 Mon, 28 Feb 2022 11:47:52 +0000 https://diviengine.com/?p=47518#comment-189729 In reply to Alex.

You would need to alter the code to target or get the CSS class and then only open this – but this would require more thought and coding.

Maybe the solution for you if you do not know JS code – is to duplicate the click function for each pop up and change the css class for each

]]>
By: emma https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-189723 Mon, 28 Feb 2022 10:01:44 +0000 https://diviengine.com/?p=47518#comment-189723 In reply to Divi Engine.

Hiya, I’m really trying to figure this out to make sure multiple popups work on the same page but I can only get it so all of the popups are triggered at the same time.

]]>
By: Alex https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-188260 Wed, 09 Feb 2022 18:25:20 +0000 https://diviengine.com/?p=47518#comment-188260 Hi there,

Do you know if it is possible to target the divi audio player button with this code?

I have tried but been unsuccessful so far.

Many thanks

]]>
By: Raphael https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-187825 Thu, 03 Feb 2022 03:39:15 +0000 https://diviengine.com/?p=47518#comment-187825 Hey, thank you so much for writing this code.

Is there a way to have multiple overlays?
I have 6 buttons and each one has a different content that needs to be shown.

]]>
By: Janik https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-187562 Sun, 30 Jan 2022 02:36:16 +0000 https://diviengine.com/?p=47518#comment-187562 In reply to Divi Engine.

Hello,

nice code.

but i need to say that now all other buttons all over my homepage are not working anymore. doesnt matter they are linking to other pages or just “add to cart” buttons for example.

Do you have any help for me? 🙂

]]>
By: Joanie https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-185143 Wed, 22 Dec 2021 14:01:26 +0000 https://diviengine.com/?p=47518#comment-185143 In reply to Divi Engine.

Hi,
Thanks for your answer 🙂
Here is what I have when I inspect the button: https://share.vidyard.com/watch/Bn2kgSERGEPjxoggAXUmWN?

Thanks for your help!

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-185136 Wed, 22 Dec 2021 10:38:52 +0000 https://diviengine.com/?p=47518#comment-185136 In reply to Joanie.

I checked and it works for me – can you right click and inspect – is there a JS error?

]]>
By: Joanie https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-185084 Tue, 21 Dec 2021 13:56:59 +0000 https://diviengine.com/?p=47518#comment-185084 Hi,
Thanks for your code, this is awesome!

I have a problem though…
It popup is showing on a “normal” Chrome window, but it doesn’t show on an Incognito window.
See here: https://share.vidyard.com/watch/U4X2P3KhqnFSCG6a1gar3M?

How can I solve this?
Thanks

]]>
By: Amir https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-181861 Sat, 20 Nov 2021 08:54:48 +0000 https://diviengine.com/?p=47518#comment-181861 Hi Peter,
may I ask you for help for a solution like this:

-I have create a section with some modules like text, image and two buttons

-I like to have the section shown as auto popup as soon site is visited (covering the hole display)

-One button should close section so that the page beneath can be seen now

-One button should redirect to a some other url

I would appreciate a lot for some help,

best regards,
Amir

]]>
By: Michał Marton https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-179129 Wed, 20 Oct 2021 16:27:44 +0000 https://diviengine.com/?p=47518#comment-179129 I have problem with X – close button, can someone look? 🙂

https://martonservice1.hekko24.pl/test29/test2/

-> choose ” Hej, powiesz coś więcej ? “

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-177783 Tue, 28 Sep 2021 08:03:02 +0000 https://diviengine.com/?p=47518#comment-177783 In reply to Grace.

Well done 😀 Have a great week

]]>
By: Grace https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-177739 Mon, 27 Sep 2021 12:58:13 +0000 https://diviengine.com/?p=47518#comment-177739 Great bit of coding and works really well.

I had a problem with the scroll bar not showing for very long pieces of text, and I put

overflow:auto;

into the

.popup-overlay.show class

This seems to have sorted the problem.

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-177392 Wed, 22 Sep 2021 13:10:54 +0000 https://diviengine.com/?p=47518#comment-177392 In reply to William.

Not quite sure what you are asking – as its all done in the Divi Builder you can add what you want in there 😀

]]>
By: William https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-177316 Tue, 21 Sep 2021 18:41:47 +0000 https://diviengine.com/?p=47518#comment-177316 The element is perfect, I love the aspect of avoiding a plugin to accomplish this. The question I have is regarding the form you used. You sent this all to a form fill, but what if I simply want it to pop up my Calendly scheduler? Calendly provides you the CSS and javascript resources.

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-174862 Thu, 05 Aug 2021 08:55:53 +0000 https://diviengine.com/?p=47518#comment-174862 In reply to Mat.

This is an issue with touch on mobile – try change to be touchend instead of thouchstart.

Sorry cant debug this too much as need to spend time on plugin dev 😀

]]>
By: Mat https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-174836 Wed, 04 Aug 2021 20:07:49 +0000 https://diviengine.com/?p=47518#comment-174836 In reply to Divi Engine.

Yeah thanks a lot for that trick!
But also with the new code it just works on desktop – but on mobile the pop up disappears instantly (the same issue like Funkman773)…

Any suggestions?

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-174732 Tue, 03 Aug 2021 10:29:15 +0000 https://diviengine.com/?p=47518#comment-174732 In reply to Funkman733.

Can you try change the code from

$(document).on(‘click’, ‘.popup’, function(event){

to be

$(document).on(‘touchstart click’, ‘.popup’, function(event){

Does it work?

]]>
By: Funkman733 https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-174447 Thu, 29 Jul 2021 21:51:59 +0000 https://diviengine.com/?p=47518#comment-174447 Hi, on desktop for me it works very fine, but to see the popup on mobile I have to hold the button otherwise the popup disappears…

Any suggestions to me?

So the page where the popup appears is a private page that only the registered users can see it.

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-174422 Thu, 29 Jul 2021 14:56:29 +0000 https://diviengine.com/?p=47518#comment-174422 In reply to jual pewangi laundry.

Hi Jual,

Not sure what you mean, are you asking where you add the CSS code?

]]>
By: jual pewangi laundry https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-174293 Tue, 27 Jul 2021 17:12:40 +0000 https://diviengine.com/?p=47518#comment-174293 can that code directly add to main element css code on modules ?

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-173969 Thu, 22 Jul 2021 10:34:44 +0000 https://diviengine.com/?p=47518#comment-173969 In reply to Laura.

Hi Laura

Thanks for the kind comment and really happy it helped you!

Have a great week.

]]>
By: Laura Gibbs https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-173949 Thu, 22 Jul 2021 00:36:57 +0000 https://diviengine.com/?p=47518#comment-173949 Just a heads up that even though the overlay is invisible and at z-index: -1, it still covers my whole site and is clickable, thus blocking all my website content.

Adding display:none to the .popup-overlay CSS easily fixed this, for anyone who encounters the same problem.

]]>
By: Laura https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-173910 Wed, 21 Jul 2021 13:54:50 +0000 https://diviengine.com/?p=47518#comment-173910 Bless you for this post! T_T I have been looking SO long for a way to do this. I tried so many Javascript ways that didn’t work – they either didn’t open or they didn’t fade nicely. I found a JSON that did work but wouldn’t go away in the editor so I couldn’t see anything I was editing.

This is so nice and simple. Your instructions are easy to follow. The fade is lovely.

The X doesn’t work for me so I got rid of it. And I did need to read other people’s comments to see where I needed to put the CSS and JS because putting them in the page CSS section and Code block didn’t work. But aside from these small things, this is a perfect solution and I’m so grateful you shared it with is. Thank you!

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-173706 Sun, 18 Jul 2021 20:30:48 +0000 https://diviengine.com/?p=47518#comment-173706 In reply to Heather.

Good to hear you figured it out.. It probably is so different to Elementor but Divi is amazing – stick with it 😀

]]>
By: Heather https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-173703 Sun, 18 Jul 2021 17:08:52 +0000 https://diviengine.com/?p=47518#comment-173703 In reply to Heather.

Never mind, I figured it out. I was putting all the stuff in a row instead of a new section. I’m relatively new to divi and I pretty much hate it compared to the ease of Elementor. Argh. Your tutorial is good. Thanks!

]]>
By: Heather https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-173700 Sun, 18 Jul 2021 16:49:46 +0000 https://diviengine.com/?p=47518#comment-173700 this doesn’t seem to work. I copied and pasted everything exactly as described and nothing happens. The cursor doesn’t change to a hand when it rolls over the button, and nothing happens when I click on it. Something isn’t working with the jquery and I’m not good enough at this to figure it out. Nothing shows up in the dev tools console either for an error. What could I be missing?

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-173181 Fri, 09 Jul 2021 13:01:16 +0000 https://diviengine.com/?p=47518#comment-173181 In reply to sup.

Yes you can use the Divi Builder to create the pop up – this is in the tutorial 😀

]]>
By: sup https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-173067 Thu, 08 Jul 2021 07:27:01 +0000 https://diviengine.com/?p=47518#comment-173067 In reply to Divi Engine.

Is there any other solution for the Visual Builder CSS? I use the popup on every page (global footer) and the customer wants to edit the pages himself and the workaround is too complicated for him.

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-171610 Thu, 17 Jun 2021 07:17:06 +0000 https://diviengine.com/?p=47518#comment-171610 In reply to Edek.

Pleasure 😀 Keep it safe

]]>
By: Edek https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-171600 Thu, 17 Jun 2021 01:58:45 +0000 https://diviengine.com/?p=47518#comment-171600 Thanks for this tutorial, it saved my ass

]]>
By: tariq https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-169337 Wed, 05 May 2021 21:20:23 +0000 https://diviengine.com/?p=47518#comment-169337 add this code to your divi custom css:

.et_builder_inner_content {
position: relative;
z-index: auto;
}

if pop-up overlay doesn’t go over the header or footer.

]]>
By: Conor https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-168404 Mon, 19 Apr 2021 15:20:04 +0000 https://diviengine.com/?p=47518#comment-168404 In reply to Frederik.

Frederik, I too had this problem. Changing the z-index of the main-footer didn’t help as then the footer overlay on top of the popup when I scrolled to the bottom.

What I did in css was add the following to .popup-overlay css

z-index: -10000; /* moves the section behind all the rest so it is not shown */
display: none;

]]>
By: Conor https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-168397 Mon, 19 Apr 2021 12:51:41 +0000 https://diviengine.com/?p=47518#comment-168397 I’ve put a video module with a URL to a youtube video in my popup. If I play the video and click the X the popup will close as expected but the video continues to play as I can hear the audio. any suggestions how to kill/stop the video?

]]>
By: Axel https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-166612 Tue, 16 Mar 2021 12:35:17 +0000 https://diviengine.com/?p=47518#comment-166612 Great Tutorial!
when I click the button, how can I take the user to the top of the page as it show the popup?
Can you give me an idea to solve this?
Thks!

]]>
By: louve_vix https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-165313 Sat, 20 Feb 2021 01:42:10 +0000 https://diviengine.com/?p=47518#comment-165313 In reply to Divi Engine.

I’d like to know this as well. Simply adding “show” to the popup class doesn’t work as the event is triggered by either a touch or click. I’ve tried various codes but none of them work.

]]>
By: Chris https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-159993 Mon, 07 Dec 2020 13:15:03 +0000 https://diviengine.com/?p=47518#comment-159993 Hi. I like your tutorial very much. Thanks for this.
How can I trigger the popup instead of a button on the page by a menulink? Any idea? Thanks for help. Chris

]]>
By: Chris https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-159992 Mon, 07 Dec 2020 13:00:15 +0000 https://diviengine.com/?p=47518#comment-159992 Hi. Like your tutorial very much. Thanks for that. My question:
I´d like to trigger the popup by a menulink. It works fine with a button on the page, but not if I put the class “popup” and the id “weinfinder” in the menu, where it should trigger. Any idea?
Thanks Christiane

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-159316 Thu, 03 Dec 2020 14:58:57 +0000 https://diviengine.com/?p=47518#comment-159316 In reply to Marcus Dige.

not sure – we will try take a look when we can

]]>
By: Marcus Dige https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-159304 Thu, 03 Dec 2020 12:24:23 +0000 https://diviengine.com/?p=47518#comment-159304 In reply to Marcus.

Depending on how much you have scrolled on the page with the Ipad, the popup overlay also sometimes closes itself down immeadietly after you have clicked on the link. Is there something in the code I need to change?

]]>
By: Marcus https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-159254 Thu, 03 Dec 2020 08:14:23 +0000 https://diviengine.com/?p=47518#comment-159254 I have a problem with the popup overlay on ipad. Everytime I click on the link that makes the popup overlay appear, the popup block changes color to gray instead of white (the intended bagground color) in 1 second where it after turns white again. I have tried to see if the same happens on iphone or on mac but it only happens on ipad from what i can tell.

Click on Thomas Nørgaard “Read Bio” to see the popup overlay.

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-155372 Mon, 16 Nov 2020 14:34:30 +0000 https://diviengine.com/?p=47518#comment-155372 In reply to Marcus.

Thanks, glad you solved it!”

]]>
By: Marcus https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-155362 Mon, 16 Nov 2020 13:49:22 +0000 https://diviengine.com/?p=47518#comment-155362 In reply to Marcus.

nvm i solved the problem. It was the z-index

]]>
By: Marcus https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-155361 Mon, 16 Nov 2020 13:49:00 +0000 https://diviengine.com/?p=47518#comment-155361 In reply to Marcus.

nvm i solved the problem

]]>
By: Marcus https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-155360 Mon, 16 Nov 2020 13:43:33 +0000 https://diviengine.com/?p=47518#comment-155360 The X doesn’t work when I try to close the window down which is weird. The cusor which I have defined to be a pointer when hovering the X is not working as well even tho I have copied all the code in my custom css. What could the problem be? Click on the “read bio” under john mortensen to see the popup.

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-154475 Mon, 09 Nov 2020 10:45:02 +0000 https://diviengine.com/?p=47518#comment-154475 In reply to Gila.

Can you send a link? I think your header has a higher z-index than the page so this would be the problem.

]]>
By: Gila https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-154394 Sun, 08 Nov 2020 13:33:57 +0000 https://diviengine.com/?p=47518#comment-154394 Great tutorial – thanks a lot for this. Just a question – the X to close the modal gets lost behind the header. It appears over the other elements on the page but it doesn’t go over the header. Not a coding expert but I tried increasing the z-index and it didn’t help. Any ideas? Thanks!

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-153329 Thu, 29 Oct 2020 10:23:01 +0000 https://diviengine.com/?p=47518#comment-153329 In reply to Jim.

What is your JS code?

]]>
By: Jim https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-153289 Wed, 28 Oct 2020 17:51:27 +0000 https://diviengine.com/?p=47518#comment-153289 In reply to Divi Engine.

Hi, I’m struggling with this bit. I’ve set up different classes, tagged the corresponding section IDs and now each of my different buttons/triggers are loading all of the popups

]]>
By: Dave https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-152732 Fri, 23 Oct 2020 14:05:05 +0000 https://diviengine.com/?p=47518#comment-152732 Oh wow, it worked. Well i’ll be.

]]>
By: Michelle https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-151927 Fri, 16 Oct 2020 13:28:55 +0000 https://diviengine.com/?p=47518#comment-151927 In reply to Divi Engine.

I ended up needing that X for phone as I was concerned people wouldn’t realize how to close the popup. At the top of the divi section, I added a row with text, typed in an X, added a border, then used sizing to make the box about 25px square to fit the x in and to right justify. I did not add the .popup-content CSS and I left the background color empty so that it appears to be floating above the popup. Adjust the spacing for the section and that row to nudge the X towards the top corner. Looks and works great!

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-151260 Fri, 09 Oct 2020 08:26:50 +0000 https://diviengine.com/?p=47518#comment-151260 In reply to Michelle.

Yeah – simple is often best 😀

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-151259 Fri, 09 Oct 2020 08:26:09 +0000 https://diviengine.com/?p=47518#comment-151259 In reply to Michelle.

Wow – love it. I think its great to see people take and expand on the code we provide 😀 well done!

]]>
By: Michelle https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-151165 Thu, 08 Oct 2020 14:25:20 +0000 https://diviengine.com/?p=47518#comment-151165 Thanks for this! This is so much better and more flexible than using plugins!

I added the code you added in the comments to create a scrollable popup. It works great, but I switched the max-height to 100vh as I preferred the full screen height. The 80vh also looked wonky as the popup section overlay didn’t cover 20% of the page.

I ran into issues having more than one row in popup section so that I can build a complete layout using a variety of columns. Each row was placed side-by-side across the full screen. To fix this, I deleted all of the CSS for the X icon, then changed the display from flex to block in the CSS for overlay when shown.

I preferred not having the X anyway as most people realize they can click outside the content to exit, but I may also get rid of the CSS class (popup-content) in each row so that clicking anywhere closes the popup.

]]>
By: Michelle https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-151163 Thu, 08 Oct 2020 13:34:46 +0000 https://diviengine.com/?p=47518#comment-151163 In reply to Divi Engine.

My workaround has been to temporarily add the number 1 at the end of the section CSS class (so popup-overlay1). This then breaks its connection with the code, allowing you to view the content for editing. Note that this also breaks the popup function for now.

You have to edit the section CSS class in the WP Edit Page view because the section is not visible in the page view, then you can switch to View Page and Enable Visual Builder. When you’re done editing, delete the “1” so that the popup functions work again.

]]>
By: Nathan https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-148913 Wed, 16 Sep 2020 13:56:06 +0000 https://diviengine.com/?p=47518#comment-148913 This tutorial is great, i’ve got it working on a website but since I’ve changed it to a ‘Boxed Layout’ the popup is no longer centred and showing up on the right-edge of the screen. Is there any way to show centred again with keeping the layout of the site ‘Boxed’?

]]>
By: Martin https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-148271 Wed, 09 Sep 2020 18:07:46 +0000 https://diviengine.com/?p=47518#comment-148271 Great tutorial thank you. I am trying to use this for a login but every time I click into the login field the popup disappears. How can I fix this?

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-148109 Tue, 08 Sep 2020 08:24:25 +0000 https://diviengine.com/?p=47518#comment-148109 In reply to paul.

I will look to see about adding to the tutorial to help you but at the moment I am very busy so cannot work on this now.

sorry

]]>
By: paul https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-148066 Mon, 07 Sep 2020 17:57:49 +0000 https://diviengine.com/?p=47518#comment-148066 In reply to Divi Engine.

hello, could you expand on this? what exactly needs to be changed? I keep getting the same overlay content even though I am changing the “popup” class to a different name. could you post sample code? thank you in advance.

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-146573 Wed, 19 Aug 2020 14:12:13 +0000 https://diviengine.com/?p=47518#comment-146573 In reply to Dee.

You can give each “trigger element” a different class. Then change the line

$(document).on('click', '.popup', function(event){

to open a different pop up.

]]>
By: Dee https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-146565 Wed, 19 Aug 2020 14:07:38 +0000 https://diviengine.com/?p=47518#comment-146565 If you want to have more than one popup (say for a bio page for a leadership team), how do you call more than one class in JS?

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-145025 Sat, 01 Aug 2020 19:40:35 +0000 https://diviengine.com/?p=47518#comment-145025 In reply to verena.

Yes you could use custom CSS for this.

Something like


.popup-overlay {
max-height: 80vh; /* 80% of the window height */
overflow: auto /* if content is bigger, show scrollbar */
}

I have not tested this code but this should help you on your way

]]>
By: verena https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-144494 Mon, 27 Jul 2020 18:57:29 +0000 https://diviengine.com/?p=47518#comment-144494 Thank you so much for your tutorial and your video.
Is it possible to have a popup with fixed size and use a scroll bar if it has more content?

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-139885 Fri, 26 Jun 2020 08:25:57 +0000 https://diviengine.com/?p=47518#comment-139885 In reply to Drew Downz.

I agree, it won’t be great for your SEO Sandy (thanks Drew)

]]>
By: Drew Downz https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-139845 Thu, 25 Jun 2020 18:03:05 +0000 https://diviengine.com/?p=47518#comment-139845 In reply to Sandy.

Google hates when this occurrs and it may hurt your seo.

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-139784 Thu, 25 Jun 2020 06:36:28 +0000 https://diviengine.com/?p=47518#comment-139784 In reply to Beth.

I realised my code had a slight issue – I have updated it now so it won’t have this issue. Please change your code to be the updated code

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-139782 Thu, 25 Jun 2020 06:33:41 +0000 https://diviengine.com/?p=47518#comment-139782 In reply to Vikas.

1) You need to add the CSS into Divi > Theme Options > Custom CSS and the Jquery in the integrations tab. See here; https://www.youtube.com/watch?v=jS7iLFRCRd4

2) Yes but not “pop up class”, instead “popup-overlay”

3) Show gets added by the jQuery

I think the video will help you if you have not seen it

]]>
By: Vikas https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-139387 Fri, 19 Jun 2020 12:59:31 +0000 https://diviengine.com/?p=47518#comment-139387 Dear team,

Regarding the tutorial…
https://diviengine.com/how-to-create-a-pop-up-overlay-with-the-divi-builder-without-a-plugin/

I am confused with Step 5 as when I click on the link, nothing is happening.

Do I need to add script given in step 2 and step 5, both to ‘Integration’- ‘Add Code to the body’?

Also, you have mentioned class ‘“popup-overlay”, and class “popup-content”.

I have added ‘pop up class’ as CSS Class to the Section and CSS Class ‘popup-content’ to the column. Am I right here?

Lastly, is there a class called ‘Show’ also that I have to add somewhere?

Many thanks,,

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-138302 Mon, 08 Jun 2020 08:27:09 +0000 https://diviengine.com/?p=47518#comment-138302 In reply to Beth.

Hi Beth, Check Laura’s comment

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-138301 Mon, 08 Jun 2020 08:26:35 +0000 https://diviengine.com/?p=47518#comment-138301 In reply to quentin.

Hi Quentin, Check Laura’s comment

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-138300 Mon, 08 Jun 2020 08:26:16 +0000 https://diviengine.com/?p=47518#comment-138300 In reply to Laura.

Thanks Laura, I have been so busy with development and a new plugin I did not have time to solve this so very happy to hear you helped 😀

]]>
By: Laura https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-138207 Sat, 06 Jun 2020 10:03:49 +0000 https://diviengine.com/?p=47518#comment-138207 In reply to Divi Engine.

Thank you for this very helpful article.
I encoutered the same issue than Beth and Quentin and solved it by adding event.stopPropagation(); in
$(document).on(‘click’, ‘.popup’, function(event){ // when they click on the popup element
event.preventDefault(); // Prevent click through
$(‘.popup-overlay’).addClass(‘show’);
event.stopPropagation(); // Add class show to the overlay
});
(step 4)

]]>
By: quentin https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-138154 Fri, 05 Jun 2020 11:01:39 +0000 https://diviengine.com/?p=47518#comment-138154 In reply to Divi Engine.

Better with the link… sorry

https://www.snext-solutions.com/

]]>
By: quentin https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-138153 Fri, 05 Jun 2020 11:01:12 +0000 https://diviengine.com/?p=47518#comment-138153 In reply to Divi Engine.

Hi! This the link to my website, if you can check.. Thank you!

]]>
By: Rose https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-137578 Thu, 28 May 2020 17:59:01 +0000 https://diviengine.com/?p=47518#comment-137578 In reply to Divi Engine.

Hi!

Thank you so much for this tutorial, I really appreciate it!
My website is not online yet, but I also encounter the same problem when I initially click on the content inside the popup, it closes. Did you by any chance find a solution for this?

]]>
By: quentin https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-137440 Wed, 27 May 2020 09:49:37 +0000 https://diviengine.com/?p=47518#comment-137440 In reply to Divi Engine.

Sorry to answer late, my website is running localy for the moment. But I have the exact same problem as Beth on her test page.

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-137311 Mon, 25 May 2020 17:11:39 +0000 https://diviengine.com/?p=47518#comment-137311 In reply to quentin.

Thanks, Quentin.

I am not sure – do you have a URL so I can see?

]]>
By: quentin https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-137296 Mon, 25 May 2020 16:17:51 +0000 https://diviengine.com/?p=47518#comment-137296 In reply to Divi Engine.

Hi, first of all, thank you very much for this tutorial! I just get into the jQuery world thanks to your video!

I have the same issu as Denver. When the popup popup and i first click on an text field, it closes but just once.

Do you have the solution?

]]>
By: Nick https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-136795 Thu, 21 May 2020 07:21:52 +0000 https://diviengine.com/?p=47518#comment-136795 In reply to Divi Engine.

Hi,

It doesn’t work. It will “stop” momentarily and then you will hear it start playing again in the background. 🙁

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-136794 Thu, 21 May 2020 07:12:47 +0000 https://diviengine.com/?p=47518#comment-136794 In reply to Nick.

Yes seems a little more complicated than YouTube – have you seen this one where you can kill the iframe? https://stackoverflow.com/questions/10401819/jquery-how-to-stop-vimeo-video-when-click

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-136793 Thu, 21 May 2020 07:10:55 +0000 https://diviengine.com/?p=47518#comment-136793 In reply to jumperger.

Just before you close the popup you can add another line of jQuery to stop it. You need to target the video using a CSS class or ID

$('#video_id').get(0).stopVideo();

Change ‘#video_id’ which the css target for your video

]]>
By: Nick https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-136792 Thu, 21 May 2020 06:36:12 +0000 https://diviengine.com/?p=47518#comment-136792 Hi,

Great tutorial on creating a popup without a plugin.
It works wonders. However, I’m trying to get the popup to stop the Vimeo video that I embedded in it.
I tried a few solutions on Stackoverflow but none seem to work.

Any ideas? Also, I think the method might be different if it’s a Youtube or Self-hosted Video?

]]>
By: jumperger https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-136231 Sat, 16 May 2020 20:54:06 +0000 https://diviengine.com/?p=47518#comment-136231 Hi, thanks for your cool popup instruction. L‘ve used it to popup a divi video module. It works great! There is one small problem, when the user closes the popup without stoping/pausing the video, the video continues to play when hidden. Would it be possible to add a pause command to the jquery when the „show“ is deleted from the CSS?

]]>
By: jumperger https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-135959 Wed, 13 May 2020 14:05:31 +0000 https://diviengine.com/?p=47518#comment-135959 In reply to Divi Engine.

Thanks for helping me with this.

> I can see the “x” for me. Did you fix this?
A partial Yes, the X is supposed to be outside the poping element. In my page it was half in and half out, where the outer part could not be seen. Changing the position totaly outside made it disapear, giving it a top: -20 position made it visible inside the Row. I do not understand why I had to do this workaround. (during testing, my Background was not white or transparent. The part of the X outside the “Row” was hidden behind the background.

> To position it right next to the button will be more complicated.
Sorry to here that, and using the last click mouse pointer position to position the popup, would it be possible?

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-135819 Tue, 12 May 2020 09:04:13 +0000 https://diviengine.com/?p=47518#comment-135819 In reply to jumperger.

Hi, glad it helped.

I can see the “x” for me. Did you fix this?

To position it right next to the button will be more complicated. We have a plugin “Divi Mega Menu” which you can do this with if you want

]]>
By: jumperger https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-135786 Mon, 11 May 2020 19:54:45 +0000 https://diviengine.com/?p=47518#comment-135786 Hi,
thank you for the good instructions, I never used jquery and your video explains it very well, I learned a lot.
Igot your code working on my site , but I have one issue and one question:

Issue: the X is not showing up, CSS X is copied to Divi/ThemeOptions/General

Question: Is it possible to position the Popup near the calling button instead of in the center of the page. I’ve already made the section background transparent.

My page is http://www.ehtl.lu/po/ the button used for the popup is at the bottom of the page, the first one in a row of for buttons. I want to do the same for all the buttons. each one revealing a different section.

Thank you for your help.

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-135326 Wed, 06 May 2020 07:21:00 +0000 https://diviengine.com/?p=47518#comment-135326 In reply to kris.

I am not sure. There is another way which I think is easier to do. Let me add this method on the post and let you know

]]>
By: kris https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-135234 Tue, 05 May 2020 11:05:38 +0000 https://diviengine.com/?p=47518#comment-135234 In reply to Divi Engine.

Thanks! It sounds all simple. i did exactly what was explained and it does not work….
I successfully hide the entire popup but when i click on the button, it takes me back up to the top of the page.
Any idea why?

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-135147 Mon, 04 May 2020 07:36:03 +0000 https://diviengine.com/?p=47518#comment-135147 In reply to Kris.

Hi Kris,

I can help you 😀

4) Add to: Divi > Theme Options > Custom CSS
5) Add to: Divi > Theme Options > Integration. Add this in the box named “Add code to the < body > (good for tracking codes such as google analytics)”

Hope this helps

]]>
By: Kris https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-134999 Sat, 02 May 2020 04:16:37 +0000 https://diviengine.com/?p=47518#comment-134999 Hey!
So I know nothing about website design and I find steps 4 and 5 a little confusing. Where do I copy these codes? Thanks!

]]>
By: Beth https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-130368 Thu, 16 Apr 2020 08:46:41 +0000 https://diviengine.com/?p=47518#comment-130368 In reply to Divi Engine.

Thanks. I massively appreciate that.

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-130367 Thu, 16 Apr 2020 07:47:43 +0000 https://diviengine.com/?p=47518#comment-130367 In reply to Frederik.

Can you try adding this CSS please?


#main-footer {
z-index: 99999;
position: relative;
}

]]>
By: Frederik https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-130366 Thu, 16 Apr 2020 06:59:54 +0000 https://diviengine.com/?p=47518#comment-130366 The Popup works fantastic. One litte Problem: With the script above it looks like my footer is “behind” the popup. I cannot click on the links and the newsletter form. Any ideas to fix this issue?

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-130017 Wed, 15 Apr 2020 07:54:42 +0000 https://diviengine.com/?p=47518#comment-130017 In reply to Beth.

This is strange. Let me spend some time to try work this out when I have a moment.

]]>
By: Beth https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-128665 Fri, 10 Apr 2020 13:10:32 +0000 https://diviengine.com/?p=47518#comment-128665 In reply to Divi Engine.

Hi, Great instructions here. Really easy to follow. Very clear and super helpful.

However, I seem to have a similar issue to Denver above. My test page is here http://pmsfreedom.com/tester/. When I click on the Click Here button my overlay shows great. Then, when I click on the popup-content, the overlay show toggles off, unless I click exactly in the right spot in the input fields. Any subsequent click on the Click Here button and the pop up works correctly, only closing when I click outside of the popup-content area. When I reload the page it goes back to toggling off the overlay show when I click on the popup-content.

I have changed the popup-overlay.show z-index to 9999999 as recommended to Denver but still have the same issue. I was hoping you might be able to give me some guidance on this.

Big thanks for your work. Beth

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-126050 Tue, 31 Mar 2020 10:14:01 +0000 https://diviengine.com/?p=47518#comment-126050 In reply to Winnie.

Yes you can do this. Change the javascript to be the following. This will add the class on hover and then remove when out. You will need to customise it to also add the class when hovering over the pop up content too



]]>
By: Winnie https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-126049 Tue, 31 Mar 2020 09:58:31 +0000 https://diviengine.com/?p=47518#comment-126049 Can this be adjusted to being on hover instead of on click?

]]>
By: Melissa https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-125853 Mon, 30 Mar 2020 13:04:27 +0000 https://diviengine.com/?p=47518#comment-125853 This is fantastic Pete. Can imagine so many different ways to use this.
Thanks so much!

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-125136 Fri, 27 Mar 2020 07:57:11 +0000 https://diviengine.com/?p=47518#comment-125136 In reply to EC.

Looking at the CSS it should fade out too – either post the link to your site here or email su*****@di********.com so I can check

]]>
By: EC https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-125084 Thu, 26 Mar 2020 21:19:01 +0000 https://diviengine.com/?p=47518#comment-125084 Thank you for this. Any suggestions on how to fade the pop up overlay out when click on x… similar to how it fades in?

]]>
By: Sandy https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-124834 Wed, 25 Mar 2020 19:55:06 +0000 https://diviengine.com/?p=47518#comment-124834 In reply to Divi Engine.

No like a popup that has the homepage in the background. I was able to accomplish this with the ET Bloom plugin by setting the mail client to HTML and leaving it blank. Here is the example. https://clearsclinic.com I will try the suggestion above to accomplish this without a plugin.

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-124735 Wed, 25 Mar 2020 09:36:20 +0000 https://diviengine.com/?p=47518#comment-124735 In reply to KP.

Yes you can do this.. Add the class “show” to the popup as well. So instead of it being “popup” it will be “popup show” (obviously without the speech marks)

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-124734 Wed, 25 Mar 2020 09:34:06 +0000 https://diviengine.com/?p=47518#comment-124734 In reply to Sandy.

What do you mean ontop – do you mean above the header like a bar at the top?

]]>
By: Sandy https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-124682 Wed, 25 Mar 2020 05:12:04 +0000 https://diviengine.com/?p=47518#comment-124682 In reply to Divi Engine.

Is it possible to modify the approach to make a popup appear automatically on top of the homepage each time the URL is accessed? Here is one simple example. https://marinafortin.com

]]>
By: KP https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-124632 Tue, 24 Mar 2020 22:24:14 +0000 https://diviengine.com/?p=47518#comment-124632 In reply to Divi Engine.

Hi – I have the same question that Sandy does, for sites that need a COVID-19 update: How can this be modified so that the popup appears immediately when the homepage is loaded? Any help is appreciated!

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-124583 Tue, 24 Mar 2020 15:41:00 +0000 https://diviengine.com/?p=47518#comment-124583 In reply to Sandy.

Thank you Sandy,

Glad you found it useful – will share this post on Social media as hopefully, it can help others too

]]>
By: Sandy https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-124582 Tue, 24 Mar 2020 15:27:05 +0000 https://diviengine.com/?p=47518#comment-124582 Due to the coronavirus, I need to display a notice on a medical site immediately when a user accesses the homepage that contains information on changes in protocol. It seems this would be easy with Divi, but it’s not the case. I found this tutorial. Is it possible to modify the approach to make a popup appear automatically on top of the homepage each time the URL is accessed? Here is one simple example. https://marinafortin.com Thank you! Sandy

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-112851 Fri, 24 Jan 2020 18:46:54 +0000 https://diviengine.com/?p=47518#comment-112851 In reply to Shelly.

Can you either send the link to your site here or email su*****@di********.com and I will take a look for you when I can.

]]>
By: Shelly https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-112793 Fri, 24 Jan 2020 16:18:42 +0000 https://diviengine.com/?p=47518#comment-112793 HI,
Very Helpful, I’m trying to add appointments code in popup content. everything work fine but second click on content close the popup. How you can add Cross or close button but not on second click on content.
Best Regards Thanks Shelly

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-112566 Thu, 23 Jan 2020 08:47:23 +0000 https://diviengine.com/?p=47518#comment-112566 In reply to Denver.

Hi Denver,

1) Very strange. I am not sure why as the class “popup-content” is added to the div so therefore it should stop it from closing it. Very strange

2) Try changing the CSS to be


.popup-overlay.show {
z-index: 99999999999999999999999;
}

]]>
By: Denver https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-112468 Wed, 22 Jan 2020 18:07:26 +0000 https://diviengine.com/?p=47518#comment-112468 Thank you for sharing all this information! It’s been super insightful. I’m running into two issues that I haven’t been able to work around yet (http://justin.somethingproper.com/)

1. When I initially go to the homepage and click on “Consulting” or “Speaking” in the main menu to open the overlay form, the overlay opens perfectly but when I click on the form, it closes. Now if I select “Consulting” or “Speaking” again to open the overlay form, I’m able to click into the form without any issues. It’s like something in the jQuery code is being triggered the first time the overlay opens but is fine afterwards.

2. The second issue I’m running into is trying to get the overlay to cover the Secondary Menu Bar at the very top.

Thank you again for sharing this info. I’ll keep trying to fix this problem on my own but I thought I’d try and reach out as well.

]]>
By: Divi Engine https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-111423 Wed, 15 Jan 2020 14:31:17 +0000 https://diviengine.com/?p=47518#comment-111423 In reply to Martin.

Thanks for the comment and great you have it working for you! Yes, you can add the CSS there or in Divi > Theme Options > Custom CSS.

I will try come up with a solution for the visual builder CSS for you and others

]]>
By: Martin https://diviengine.com/how-to-create-a-pop-up-overlay-without-a-plugin-using-divi/#comment-111333 Wed, 15 Jan 2020 11:23:23 +0000 https://diviengine.com/?p=47518#comment-111333 Hi, just read your post, because I really needed a pop-up function without using a plugin. And it works perfectly for me. At 4. I first added the CSS to the Overlay section CSS and got an error, so make sure you add it to the pages CSS.

Only bad thing about it is, as soon as you put in the CSS the overlay section also hides in the visual builder, so you always have to remove it to edit it 😀

Beside that great solution, thanks so much!

]]>