Home › Forums › Quform WordPress › How to disable popup exit on click function
- This topic has 6 replies, 2 voices, and was last updated 3 years, 11 months ago by galaxyto.
- AuthorPosts
- November 29, 2020 at 9:46 pm #32299galaxytoParticipant
Hi Ally,
I’d like to disable the popup form function that closes the lightbox when you click outside the form in the overlay area.
Currently I have the form preloaded on all the site pages using the following function:
jQuery(function ($) {
$('a[href="#appointment-request"]').click(function () {
$('.quform-popup-link-10').click();
return false;
});
});
Can you tell me how I can disable the overlay click exit so visitors can only close the popup by clicking the X icon?Thanks
December 2, 2020 at 11:25 am #32305AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
December 11, 2020 at 4:24 am #32333galaxytoParticipantHi Ally,
I’m using jQuery to add the popup function to all the pages automatically. So I’m not using shortcode.
I checked the popup script type. It was off in the settings but I turned it on and it says Magnific Popup.
December 11, 2020 at 8:59 am #32336AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
December 13, 2020 at 10:06 pm #32341galaxytoParticipantHere’s the code that I have in the functions.php to activate the popup
add_action('wp_footer', function () { if (!class_exists('Quform')) { return; } echo do_shortcode('[quform_popup id="10"]'); ?> <script> jQuery(function ($) { $('#menu-item-31558').click(function () { $('.quform-popup-link-10').click(); return false; }); }); </script>
December 15, 2020 at 10:55 am #32352AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
December 16, 2020 at 6:27 am #32362galaxytoParticipantPerfect, Divi uses Magnific popup!
Thanks - AuthorPosts
- You must be logged in to reply to this topic.