Hello! Such a problem - when launching a modal window, the background is darkened on the whole page and does not return to its original state when you press the close button. What could be wrong?

$('.popup-modal').magnificPopup({ type: 'inline' }); 
 .white-popup { position: relative; background: #FFF; padding: 25px; width: auto; max-width: 400px; margin: 0 auto; } 
  <a class="popup-modal btn btn-lg btn-primary" href="#modal-event">Заказать</a> <div id="modal-event" class="white-popup mfp-hide"> <h1>Форма по ивентам</h1> [contact-form-7 id="3155" title="Форма по ивентам"] <p><a class="popup-modal-dismiss" href="#">Закрыть</a> </p> </div> 

  • one
    For the answer you need JS-code and CSS-styles. - user31688
  • Most likely I already understood - a conflict with js script magnific popup - Vasya
  • If it is clear and the problem is solved - close the question. - user31688
  • how can you implement a modal window on magnific popup - Vasya
  • Look in the documentation. Here they help, but do not do it for the author. If you need to do - there is a freelance exchange. - user31688

0