December 18, 2020 at 11:14 pm
#10035448
Keymaster
Hello,
Unfortunately not.
If you want create a button to close, here’s the needed code:
1) HTML:
<a href="#" class="btn btn-primary custom-close-button">Close Button</a>
2) (js/custom.js):
$('.custom-close-button').on('click', function(e){
e.preventDefault();
$.magnificPopup.close();
});
Hope this helps!
Kind Regards,
Rodrigo.
If you are satisfied with Porto HTML and our support, please leave your comment and rating on ThemeForest downloads page. That helps us a lot: https://themeforest.net/downloads