Reply To: Popup with video or map (elements-lightboxes.html)

#10043425
Support
Keymaster

Hi, please try with the following code:

<a href="https://www.youtube.com/watch?v=Ibz-hF51rZ0" class="youtube-lightbox">Open Lightbox</a>

(js/custom.js)

$(document).ready(function() {
    $('.youtube-lightbox').magnificPopup({
        disableOn: 700,
        type: 'iframe',
        mainClass: 'mfp-fade',
        removalDelay: 160,
        preloader: false,

        fixedContentPos: false
    });
});

Important: To make it work you just need to upload the files to your server (FTP), or just run that in a localserver (localhost). It won’t work open the HTML file directly in the browser.

Let me know if you need further assistance.

Best Regards,

Okler Themes