fancyapps / fancybox

jQuery lightbox script for displaying images, videos and more. Touch enabled, responsive and fully customizable.
http://fancyapps.com/
7.29k stars 1.79k forks source link

fancybox iframe problem: just a thin line #2615

Closed stathimexas closed 2 years ago

stathimexas commented 2 years ago

I use the latest version of "FancyBox for WordPress" and have the following html in my post on the latest version of Wordpress:

<a data-fancybox data-type="iframe" href="https://mywebsite.org/wp-content/uploads/albums/test/mysong.mp4">Click to play</a>

But when I click on the link, the iframe launches but only a red line appears, which is the color of the frame from the settings. You can see it here.

Please help me. Thank you so much.

fancyapps commented 2 years ago

Hi,

It is because your link has data-type="iframe", please, remove or change to data-type="video".

stathimexas commented 2 years ago

Janis, thank you soooo much.