How do I close a modal window?

  • 0
    On the page www.darkvision.ru/showcases a video portfolio is implemented. The site is made on Wordpress, the wow plugins - modal window plugin is responsible for a custom modal window that pops up by clicking on the video.
    Everything opens normally, but does not close when you press the close button. In the plugin settings it is possible to add closing by ESC, enabled. But this is a bad option.
    Code:
    www.darkvision.ru/wp-content/uploads/custom -css-js ...
    www.darkvision.ru/wp-content/uploads/custom -css-js ...
    JavaScript Asher Hinton, Apr 3, 2019

  • 1 Answers
  • 0
    But because you have no closure there. You have a video link clearing there







    And it should be like this



    jQuery(function ($) {
    $(document).on('click','#wow-modal-close-1.mw-close-btn',function () {
    $('#wow-modal-overlay-1').hide();
    })
    });
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!