Hide lightbox popup on mobile display?

  • Profile Image
    livetherapy
    Asked on November 22, 2014 at 12:42 AM

    Hi,

    I need to hide the Jotform lightbox popup only on mobile devices.  Any thoughts?  I've tried adding the below css within the Jotform CSS pane, to no avail:

     

    @media screen and (max-width: 480px){

        .jotform-form {

            padding : 400px !important;

       }

    }

     

     

    I'd really appreciate some help!  Site is www.hydeparkfatloss.com

  • Profile Image
    Ben
    Answered on November 22, 2014 at 05:44 AM

    Hi,

    The approach is good, but you can not hide the element that is posted outside of the frame by its code. To do this you should disable the elements holding the jotform instead.

    Please try this and see if it is working:

    @media screen and (max-width: 480px){
        .jt-feedback.ui-draggable, .jt-dimmer {
            display: none;
       }
    }

    -  A note: Since this code is to hide something out on your page, it can not be injected in the jotform itself.

    Do let us know how it foes

    Best Regards,
    Ben