Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #581
    Sri Shunyata
    Participant

    I’d like to apply your plugin to individual videos so I’ve turned off the auto apply settings.

    I understand that the html needs the rel=”lightbox-n” attribute.

    However, I don’t know how format the rel=”lightbox-n” into the the following example of a Vimeo Embedded video nested in a div.

    <div class=”js-video [vimeo, widescreen]”>
    <iframe src=”http://player.vimeo.com/video/72125156?title=0&byline=0&portrait=0&color=ffffff&#8221; width=”700″ height=”395″ frameborder=”0″ webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
    </div>

    Thanks

    Shunyata

    #582
    Bartosz
    Keymaster

    Hi Sri,

    The proper way to embed a video and open it in a lightbox would look like this (there’s no point in using iframe I think):

    
    <a href="http://youtube.com/watch?v=XSGBVzeBUbk" rel="lightbox-1">My YouTube Video</a>
    
    
    <a href="http://vimeo.com/35699279" rel="lightbox-2">My Vimeo Video</a>
    

    Of course, you can use image instead of My Video text.

    #583
    Sri Shunyata
    Participant

    Oh, Thanks!

    I was making it much more difficult with the iframe approach.

    Much appreciated.

    Cheers

    Shunyata

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.