Allow parameters on YouTube video lightbox shortcode
-
I love Shortcodes Ultimate and embedding YouTube videos with the lightbox shortcode is ALMOST perfect (quick to load, responsive) except for one significant issue.
If I embed a video using the embed code generated by Youtube, it allows me to set the related videos parameter to false to stop Youtube from showing the “suggested videos” at the end of a video playback. Example:
<iframe width=”310″ height=”315″ src=”//www.youtube.com/embed/mFwNBN_iKpU?rel=0″ frameborder=”0″ allowfullscreen></iframe>Unfortunately, this parameter doesn’t work with the [lightbox] shortcode which means a bunch of random video thumbnails appear when the first video ends.
Is there (or can there be) a way to include the rel=0 parameter when using the lightbox (and youtube) shortcodes?
Another video lightbox plugin (WP Video Lightbox) uses this code to allow the rel=0 parameter so it seems to be possible:
[video_lightbox_youtube video_id=”mFwNBN_iKpU&rel=0″ width=”640″ height=”480″ anchor=”See video”]That lightbox isn’t as robust as SU and I don’t want to have more plugins than I need so I’m really hoping SU can be updated to include this feature. I noticed a forum post about 3 weeks ago saying that parameters would be added to the [youtube] shortcode with the next release due out a few days after that post but it doesn’t seem to be available yet.
Thanks!
- The topic ‘Allow parameters on YouTube video lightbox shortcode’ is closed to new replies.