Reply To: How to close the product details dialogue?

#10035448
Support
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