WP Video Lightbox
[resolved] Iframe video embed gets squished vertically (3 posts)

  1. Ben Cathro
    Posted 1 year ago #

    I'm attempting to use WP lightbox plugin to display videos on my site here (it's the devils staircase text at the bottom of the page):


    I'm using the Iframe method and my code looks like this:

    <a href="//www.youtube.com/embed/QjcnuZOYR68?rel=0?iframe=true&width=640&height=360
    "rel="wp-video-lightbox[iframes]">Devils Staircase

    When the link is clicked the lightbox pops up in perfect dimensions but the video is squished into the top 1/4 of the box .

    No idea what is causing it, been hunting through the plugin code to try and find what's overriding it to no avail. It happens to youtube videos using the iframe as well.

    Any ideas?


  2. C_Guy
    Posted 1 year ago #

    I would appreciate some insight on this as I am having the exact same problem.

    I've tried playing with the width and height dimensions. The video will stretch or shrink to any width but the height is always somewhere around 300 px even though I am specifying 480.

    The lightbox behind the video will conform to whatever width and height I set in the shortcode but the video won't match it.

    Thank you :)

  3. C_Guy
    Posted 1 year ago #

    Just a followup for anyone reading this thread. I solved the problem. Turns out my theme had a CSS declaration that forced the video to maintain a specific height which overruled any height settings I was putting in the shortcode.

    Removing that declaration from the theme's CSS worked and now this awesome plugin works just like it's supposed to.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic