Easy FancyBox
[resolved] Youtube full screen popup (3 posts)

  1. Stidor
    Posted 1 year ago #

    I used to use Shadowbox which allowed me to have the youtube popup width and height 100% of the page. (I'm not talking about youtube full screen, but the width and height of the overlay)

    How can I do this with fancybox? I only want this for youtube links. For images I want to keep the autosize.


  2. RavanH
    Plugin Author

    Posted 1 year ago #

    A full 100% will not be possible but you could switch to iFrame mode instead of the Youtube content mode.

    1. Go to Settings > Media and turn on the iFrame option. Save and scroll down to the new iFrame section. Set the width and height to 100% (note that Fancybox will always keep a margin so the result will not be 100% in reality)

    2. Modify your Youtube links (use the HTML tab) so they look like this:

    <a href="//www.youtube.com/embed/XXXXXXXX" class="fancybox-iframe">link text or image</a>

    where the XXX is replaced by the movie ID as it is used in the ?v= URL parameter when you open the corresponding Youtube page.

    From now on, the Youtube movies will be played as large as possible in FancyBox :)

  3. Stidor
    Posted 1 year ago #

    Perfect! Thanks, great plugin :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic