Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #616972

    Hello,
    I have two windows I’m opening with ?iframe=true. One window takes credit card info, the other window is a survey. Right now they both open in the default lightbox size. Is there a way to change the size for each window ? Thanks !

    #618890

    Hi bibbitybop!

    Thank you for using Enfold.

    Please provide a link to the page with the lightbox. We will have to inspect it.

    Best regards,
    Ismael

    #619212

    Here’s the link to the page:

    Page

    See the two links in the welcome box. Thanks !

    • This reply was modified 8 years, 1 month ago by bibbitybop.
    #620962

    Hey!

    I’m sorry for the delay. The size of the lightbox container can be adjusted but not for individual lightbox link. This will be applied to all lightbox links:

    .mfp-iframe-holder .mfp-content {
        line-height: 0;
        width: 100%;
        max-width: 1600px;
    }
    
    .mfp-iframe-scaler {
        padding-top: 56.25%;
    }

    If the links are located on different pages, we can set the size individually.

    Regards,
    Ismael

    #621354

    Thanks ! You were looking at a test page. In reality the links will be located on different pages. Could you provide the code, or provide instructions on how to make it work on different pages ? Thanks again.

    #621358

    Hey!

    You can use following code

    .page-id-59 .mfp-iframe-holder .mfp-content {
        line-height: 0;
        width: 100%;
        max-width: 1600px;
    }
    
    .page-id-59 .mfp-iframe-scaler {
        padding-top: 56.25%;
    }

    and replace page ID to match your pages ID

    Regards,
    Yigit

    #623337

    Thanks !

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Changing Lightbox window size’ is closed to new replies.