WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. langelliott
    Member
    Posted 11 months 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?

    http://wordpress.org/plugins/lightbox-plus/

  2. brian7997
    Member
    Posted 9 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.