WordPress.org

Ready to get started?Download WordPress

Forums

Lightbox Plus ColorBox
image link to youtube video not working (2 posts)

  1. langelliott
    Member
    Posted 7 months ago #

    I'm using the lbpModal class in an attempt to open a YouTube video in a lightbox by clicking a photo placeholder. Go here to see what happens:

    http://miracleofnature-genesis.zippysites.com/bobolink-song-fantasia/

    Here is my embed code; can anyone see what I'm doing wrong?

    <img src="http://www.miracleofnature.org/wp-content/graphics/placeholders/bobolink_test2.jpg" class="alignleft" width="640" height="360" />

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

  2. brian7997
    Member
    Posted 7 months ago #

    Look at the usage tab. you need to use the embed link

    For YouTube videos to load you cannot use the share link which looks like this: http://youtu.be/17jymDn0W6U. However you can get the required link from the embed option that you get from YouTube. The embed links look like this: <iframe width="420" height="315" src="http://www.youtube.com/embed/17jymDn0W6U" frameborder="0" allowfullscreen></iframe>. You will need to copy the URL (in this case: http://www.youtube.com/embed/17jymDn0W6U) and create your link as follows:

    YouTube Flash / Video (Iframe/Direct Link To YouTube Video)

Reply

You must log in to post.

About this Plugin

About this Topic