How to display Youtube videos in a jQuery lightbox (Wordpress)?
Posted
by
janoChen
on Stack Overflow
See other posts from Stack Overflow
or by janoChen
Published on 2011-01-16T05:18:14Z
Indexed on
2011/01/16
5:54 UTC
Read the original article
Hit count: 152
I tried lightbox-plus, fancybox, etc...
But I couldn't figure how to do it.
Those videos are images posts with a link containing a Youtube video:
<p><a href="http://www.youtube.com/watch?v=zUN826BdvV4">
<img class="alignnone size-thumbnail wp-image-40"
title="Screenshot" src="http://localhost/custom-post-type/
wp-content/uploads/2011/01/Screenshot2-150x150.png"
alt="" width="150" height="150" /></a></p>
Fancybox for Wordpress, for example, let me add a lightbox to images, but if the image links to a Youtube video it doesn't work.
Any suggestions?
© Stack Overflow or respective owner