How to disable popup exit on click function

Home Forums Quform WordPress How to disable popup exit on click function

This topic is: resolved
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #32299
    galaxyto
    Participant

    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

    #32305
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #32333
    galaxyto
    Participant

    Hi 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.

    #32336
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #32341
    galaxyto
    Participant

    Here’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>
    
    • This reply was modified 7 months, 2 weeks ago by galaxyto.
    • This reply was modified 7 months, 2 weeks ago by galaxyto.
    #32352
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #32362
    galaxyto
    Participant

    Perfect, Divi uses Magnific popup!
    Thanks

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2020 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy