Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #288689

    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

    #288851

    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

    #288852

    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.

    #288855

    Sorry,

    here is the link again:

    http://www.youtube.com/watch?v=2o4HqwItVN8&rel=0

    #288863

    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.

    #288867

    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

    #289160

    Hi,

    It is not the ideal solution, but is working now.

    Thanks!

    #289207

    Yeah, it’s a workaround. You are welcome :)

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Youtube video not working in LigthBox’ is closed to new replies.