• As mentioned on another post, when a Youtube video is shown in the lightbox, there is no Close button. The Share widgets are also not drawn.

    Here’s my hack which adds a Close button on video slides, in case anyone needs it. But of course it’d be nice if the author added those to the modal. Add this to your JS file:

    
    jQuery(document).ready(function($) {
        __everlightbox_conf.afterMedia = function(i) {
            jQuery('.everlightbox-video-container').not('close-added').addClass('close-added').prepend('<div class="everlightbox-top-bar"><div class="everlightbox-right-side"><a class="everlightbox-close everlightbox-button"><i class="ev-icon-cancel"></i></a></div><div class="everlightbox-left-side"></div></div>');
        }
        // Reinitialize the gallery:
        $(".everlightbox-trigger").everlightbox(__everlightbox_conf);
    }
    
    • This topic was modified 6 years, 9 months ago by spingary.
  • The topic ‘Video modal issues’ is closed to new replies.