-
AuthorPosts
-
October 20, 2021 at 9:55 am #1325690
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?
-
This topic was modified 4 years ago by
MarcusEls.
October 21, 2021 at 8:14 am #1325819Hey 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,
IsmaelOctober 21, 2021 at 9:21 am #1325825It’s under construction
October 21, 2021 at 9:38 am #1325828can 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?October 21, 2021 at 9:42 am #1325829Placed it, see no change
October 21, 2021 at 9:45 am #1325830is 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
October 21, 2021 at 11:42 am #1325842Thanks found it, closeOnContentClick: true, added to my JS
October 21, 2021 at 12:42 pm #1325849Hi,
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,
RikardOctober 21, 2021 at 7:42 pm #1325938that 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
-
This topic was modified 4 years ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
