Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1134420

    Hey there,

    thanks for the great theme – I love it. I have found that there is a waqy to open a modal with a link:

    <a href="http://kriesi.at/?iframe=true" rel="lightbox">Click me to open in lightbox</a>

    Can I set the width&height within the link call?

    And would there be a way to disable the close function when you click anywhere on the screen? We have a form in the modal and if you close it by mistake you loose all data ;-)

    #1135519

    Hey Gabster,
    Sorry for the late reply, Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:

    div.mfp-iframe-scaler  {
    height: 150vh !important; 
    width: 100vw !important;
    }
    .mfp-iframe-scaler iframe {
        left: -15vw !important; 
        width: 90% !important; 
        height: 90% !important; 
    }

    this will open the modal almost full screen, please feel free to adjust to suit.
    Page IDs or classes can be added to target certain modals.

    Best regards,
    Mike

    #1135940

    Thanks Mike – great support!

    Is there also any idea about this one: “And would there be a way to disable the close function when you click anywhere on the screen? We have a form in the modal and if you close it by mistake you loose all data ;-)” Also not sure if the modals content should reload at all when it is closed/opened again.

    Gabriel

    #1136321

    Hi,
    Sorry I tried to research this but couldn’t find a solution, the closest I found was:

    jQuery('.mfp-wrap').magnificPopup({
            type: 'inline',
            disableOn: 767,
            closeOnBgClick:false,
            closeBtnInside:true,
        });

    but it doesn’t work nor any adjustments I applied.
    You could change the css above from 90% width to 100% width, that would leave no place for the user to click, but then I’m not sure what the advantage is to using a popup over a new page?
    Yes, the modal’s content should reload on open because it’s the same as opening a new tab.

    Best regards,
    Mike

    #1137068

    Thanks again I will check. In our case a modal is best to not interrupt the customer journey. We have a fundraising form inside and want to keep the people on the landing page all the time. However when by mistake someone closes the modal all data is lost…

    #1137318

    Hi,
    Perhaps you could try using the accordion element and putting your form in it. I tested this on my localhost and opening and closing the accordion didn’t lose the form data.

    Best regards,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.