-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Modal Snippet #4
Comments
@brianjking can you please provide the console error that you receive? If possible a live demo of the page as well. |
Hi @andyhqtran, Taking advantage of this thread, I'm wondering why you're not using Magnific Popup (part of the plugins Divi uses) for the modal. I'm currently using something like this:
And I don't have to mess with styles, etc. Whenever I want a modal I just add a link with ps: @brianjking sorry for the hijack, but maybe this can help you as well! |
@victorespigares -- I'm a bit confused, how would I go about putting a divi contact form into a modal using this method? Thanks! |
@andyhqtran Strange, I was getting errors for this modal snippet as well as the banner snippet yesterday. The modal appears correctly today, however, I still need some guidance as to how I can input a Divi Contact Form into this modal. Thanks! |
You can assign the contact form an id (#contactform) and add a "display:none;" as custom CSS for it.
From: Brian J King [email protected] @victorespigares -- I'm a bit confused, how would I go about putting a divi contact form into a modal using this method? Thanks! — |
@victorespigares it was just something that I came up within seconds. I really didn't dig much into what Divi already had. However, what you have it a great way for @brianjking to achieve his goal of dropping a form into the modal! :) @brianjking Glad it's working for you now! |
Gravity Forms and most opt-in form options work great in Popup Maker. |
@andyhqtran - So are you saying with the snippet you've provided I cannot place a Divi Contact Form module into this? @victorespigares - I'm going to try to piece together what you've submitted here. Any other guidance would be much appreciated. @lukecav - Yeah, I'd just prefer to not add any plugins unnecessarily. GravityForms is rather expensive when this site doesn't need anything more than an email form. ContactForm7 works, but it's not very straightforward to most clients I work with. |
@victorespigares Thank you! I've been driving myself crazy attempting to get the modal working with the fixed header and the z-index value issues. I knew there Divi already loaded a library to perform that function, but did not think to go down the path you mentioned! It's always good to have another set of eyes or brain for the matter. Thanks again! |
PLEASE! tell me how to open modal window with divi contact form??? |
Hi @andyhqtran,
I'm trying to use the Modal snippet you've provided here: https://github.com/andyhqtran/Divi-Resources/tree/master/Snippets/Modal and am having some trouble.
I'd like to display a Divi Contact Form inside of it, is this possible?
When I simply paste the code you've provided into the code module and publish the new page I get a console error and the page displays this:
The text was updated successfully, but these errors were encountered: