Title: Video modal issues
Last modified: May 17, 2018

---

# Video modal issues

 *  [spingary](https://wordpress.org/support/users/spingary/)
 * (@spingary)
 * [8 years ago](https://wordpress.org/support/topic/video-modal-issues/)
 * 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 8 years ago by [spingary](https://wordpress.org/support/users/spingary/).

The topic ‘Video modal issues’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/everlightbox_21201f.svg)
 * [Lightbox - EverlightBox Gallery](https://wordpress.org/plugins/everlightbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/everlightbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/everlightbox/)
 * [Active Topics](https://wordpress.org/support/plugin/everlightbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/everlightbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/everlightbox/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [spingary](https://wordpress.org/support/users/spingary/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/video-modal-issues/)
 * Status: not resolved