Hello, I have a popup on my page with a link thats goes to the same page different section
a href=”#Contact” …/a it jumps to the section but the popup window is over it. can I create an link the goes to the section and close the popup with one click?
Hey MarcusEls,
Thank you for the inquiry.
Where can we see the issue? Please provide a link to the site so that we can inspect the popup. Are you using a different popup plugin?
Best regards,
Ismael
It’s under construction
can you give to that link the class: popup-modal-dismiss and see if that is enough to do
the function on magnific popup doku to close the popup is: $.magnificPopup.close();
may i see your function of the popup?
Placed it, see no change
is it an inline popup or how did you get the anchor link into the popup – please post it here:
this could be a function that will do the job – you can choose any trigger class for it you like
$(document).on('click', '.popup-modal-dismiss', function (e) {
$.magnificPopup.close();
});
this could be part of your inline-popup script or an extra snippet – easier to give advice if i see your code.
look here : https://kriesi.at/support/topic/graceful-transition-for-pop-up-modals/#post-1205887
Thanks found it, closeOnContentClick: true, added to my JS
Hi,
Great, I’m glad that you got it working. Please let us know if you should need any further help on the topic or if we can close it. Thanks @guenni007 for helping out :-)
Best regards,
Rikard
that is possible – but then every click – elsewhere on your popup will close the popup – with that trigger – it will only close clicking on that anchor link