Tagged: LayerSlider, Lightbox, vimeo
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.
Hi mringseis!
Try adding this to your custom CSS.
.mfp-iframe-holder .mfp-content { max-width: 500px !important; }
Best regards,
Elliott
thats a good start, thanks. Any way to define the link inline? I have a variety of different sizes I need to open to.
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