Hi,
After the last update some youtube videos in my website no more working.
Some images call the video in lightbox, but now nothing working more.
What can I do about that?
THANKS
Hey CloudChoice!
Thank you for the update.
I tested the youtube video on my end and it’s not working when you play it on lightbox but it does play when you’re on the actual youtube page. We will report the issue to Kriesi. For now, please remove the rel=0 attribute. It should work afterwards.
Regards,
Ismael
Hi,
Not working. The link address in the image is:
The link is ok, (you can test) but the video is not working inside the ligtbox.
Sorry,
here is the link again:
http://www.youtube.com/watch?v=2o4HqwItVN8&rel=0
Hi,
Using the ?rel=0 instead of &rel=0 works, but not the ideal solution. The video does not work automatically, and not back to the top.
Hey!
Try using a normal Youtube URL (without any parameters) and add this at the very end of your theme / child theme functions.php file:
function change_magnific_popup_iframe_setting(){
?>
<script>
jQuery(window).load(function(){
jQuery('a[href*="youtube.com/watch"]').magnificPopup({
type: 'iframe',
iframe: {
patterns: {
youtube: {
index: 'youtube.com',
id: 'v=',
src: '//www.youtube.com/embed/%id%?rel=0&autoplay=1'
}
}
}
});
});
</script>
<?php
}
add_action("wp_footer", "change_magnific_popup_iframe_setting");
Cheers!
Josue
Hi,
It is not the ideal solution, but is working now.
Thanks!
Yeah, it’s a workaround. You are welcome :)