can anyone help me?
whatever I try the popup window can not be closed ...
https://codepen.io/MrThiemann/pen/bGpNNex
<script>
//appends an "active" class to .popup and .popup-content when the "Open" button is clicked
$(".open").on("click", function() {
$(".popup-overlay, .popup-content, .login-overlay, .login-overlay--content").addClass("active");
});
//removes the "active" class to .popup and .popup-content when the "Close" button is clicked
$(".close, .popup-overlay, .login-overlay").on("click", function() {
$(".popup-overlay, .popup-content, .login-overlay--content").removeClass("active");
});
</script>
I integrated the css code on codepen.io...while my post is mostly code....
the popup window is always displayed when the page is opened. So only for those who are not registered. I will be able to install this loop afterwards.
Most of the tutorials I find relate to a button to open and close a pop-up .. but for me it is permanently open and should "only" be able to be closed.
<div class="container">
<div class="login-overlay">
<!-- Trigger the modal with a button -->
<!-- NOTHING !!! -->
<!-- the window is always shown when the page is opened -->
<!-- Modal -->
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="login-overlay--content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h3 class="modal-title">Willkommen auf dein-3d.com!!!</h3>
<br>
.....
</div>
<div class="modal-body">
<ul class="list">
<li>
etc...
</li>
</ul>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default"><a href="/wp-login.php">Einloggen</button>
<button type="button" class="btn btn-default"><a href="/wp-login.php?action=register">Registrieren</button>
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>