Support » Plugin: Popup Maker - Popup for opt-ins, lead gen, & more » popmake-close not working?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Daniel Iser

    (@danieliser)

    @nlee201 – Ok so you need the page to refresh? If not then change it to a button rather than a link. If you need a refresh your best bet may be pure JS. The problem is when the browser is on url.com/xyz#hash and you click a hashed link on the same page one of 2 things happens, if its different than the one your one it jumps, otherwise the browser ignores it. So in your case the browser is ignoring it, that is the default way a browser treats it, not something we can control.

    But as I stated you could add your own click event via JS and use location.reload() to refresh the page.

    Hope that helps some. PS no need to close the popup, when the page refreshes properly the popup will already be closed.

    Thread Starter nlee201

    (@nlee201)

    Thanks for the reply. If I just wanted to have the button at the end of the form close the box, it is my understanding that you just add a popmake-close class to that button? This does not seem to work for me, even when I remove the link.

    Plugin Author Daniel Iser

    (@danieliser)

    @nlee201 – Do you have a link I can look at to see the issue first hand?

    Thread Starter nlee201

    (@nlee201)

    Yes, popup launches when you click “Package Selector” in this link: https://thecuratedtravel.com/plan-your-trip/#services

    At the end of the form, I want “Start Now” button to close the window.

    Plugin Author Daniel Iser

    (@danieliser)

    @nlee201 – Hmm, not really sure why it isn’t working. It should be, seems there may be another JS on the page preventing it.

    You can add the following after href=”#” onclick="javascript:jQuery('#popmake-3211').popmake('close');"

    Also you can safely change the href=”#services”.

    Hope that helps.

    Thread Starter nlee201

    (@nlee201)

    There must be some conflict. I’ll just have to find a way to link it some other way. Thanks again for your help! I really appreciate the support!

    Plugin Author Daniel Iser

    (@danieliser)

    @nlee201 – Can you not add the onclick to the link code? If we can always add some custom JS to trigger the close on that button click.

    Thread Starter nlee201

    (@nlee201)

    The link code isn’t working for the button, just text links. I’ve come up with the solution to have the button link to a different page and have a text link below it that says “Close” which closes using the onclick function above. This works perfectly for me.

    Plugin Author Daniel Iser

    (@danieliser)

    @nlee201 – Awesome, glad you found a solution that worked for you.

    Please take a moment to rate and review the plugin and or support.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘popmake-close not working?’ is closed to new replies.