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

  1. langelliott
    Posted 2 years 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:


    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" />


  2. brian7997
    Posted 2 years 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)

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