Lightbox Plus Colorbox
Opening Youtube in Lightbox? (2 posts)

  1. langelliott
    Posted 2 years ago #

    Is there an easy way to open a YouTube video in a lightbox via either a text link or an image link?

    I cannot find any information about this in FAQ or elsewhere. Or is Lightbox Plus only designed to open images and nothing else?


  2. brian7997
    Posted 2 years ago #

    Here is how i got it to work
    1) Initialize secondary lightbox
    2) Set your size, position (I found that I had to use fixed position for it to work correctly)
    3)Under "Other" tab check iframe and create a "Secondary Class Name"

    The link format must be (if secondary class is "youtube"):
    <a href="http://www.youtube.com/embed/LX1ozHOdyI4" class="youtube" rel="lightbox[secondary-demo]" title="">link or image goes here</a>

    The notice the URL structure /embed/ this is different from the page URL or the share link URL.

    The usage tab says
    <a title="The Known Universe" class="lbpModal" href="http://www.youtube.com/embed/17jymDn0W6U">YouTube Flash / Video (Iframe/Direct Link To YouTube Video)</a>

    But that doesn't work, at least the way I tried.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Lightbox Plus Colorbox
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.