Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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 3 years, 2 months ago by MarcusEls.
    #1325819

    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

    #1325825

    It’s under construction

    #1325828

    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?

    #1325829

    Placed it, see no change

    #1325830

    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

    #1325842

    Thanks found it, closeOnContentClick: true, added to my JS

    #1325849

    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

    #1325938

    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

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.