Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #370493

    I’m linking to a Vimeo video from an advanced layerslider in the enfold theme but the lightbox is opening up to a default size that scales my video larger than it should. Can I define the maximum lightbox size so this doesn’t happen? It looks like the default lightbox dimensions are about 900×500.

    • This topic was modified 9 years, 11 months ago by mringseis.
    #370742

    Hi mringseis!

    Try adding this to your custom CSS.

    .mfp-iframe-holder .mfp-content { max-width: 500px !important; }
    

    Best regards,
    Elliott

    #370925

    thats a good start, thanks. Any way to define the link inline? I have a variety of different sizes I need to open to.

    #370931

    Hey!

    As far as i know that’s not possible with magnific popup, however one thing you can try is using inline content opening, something like:

    <a href="#custom-frame" class="open-popup-link mfp-inline">Open Custom iframe</a>
    <iframe id="custom-frame" class="custom-popup-block mfp-hide" src="mortgage/"></iframe>
    <style>
    .custom-popup-block {
    max-width: 400px;
    height: 450px;
    }
    </style>

    To enable inline popup:
    https://kriesi.at/support/topic/inline-content-in-magnific-popup/#post-289356

    Best regards,
    Josue

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