Viewing 5 replies - 1 through 5 (of 5 total)
  • Maria T

    (@mariatogonon)

    Hi @xrafalx – could?you elaborate with more detail of what exactly you are?trying to achieve? And, what you expected to happen or see?
    ?
    ?You can provide us with screenshots or screen recording so what?we can understand it better. You can also send us a reference link to take a look at.

    Thank you.

    Thread Starter xrafalx

    (@xrafalx)

    Hi @mariatogonon here you have the link https://senhouse.pl/
    When you click on “hamburger menu” it opens popup, but i want to close it with same button, check also screen.

    View post on imgur.com

    Maria T

    (@mariatogonon)

    Hey @xrafalx, thanks for sending further details and apologies for the delayed response.

    I had to discuss it to our lead developer and according to him, the best option is to make a custom solution with JavaScript on that button – On click toggle the popup.

    jQuery('.button-selector').on('click', function (event) {
        event.preventDefault();
        var $this = jQuery(this);
        if ($this.hasClass('open')) {
            $this.removeClass('open')
            PUM.close(123);
        } else {
            $this.addClass('open');
            PUM.open(123);
        }
    }

    That said the menu appears to be outside the popup, so you could maybe get away with checking the close popup on overlay click option, as well.

    Could you please try that and let us know if that works for you?

    And, if you would like us to assist you further with your issue, you will need to escalate it directly to our HelpScout support desk. Check this link:?https://wppopupmaker.com/support/. Thank you.

    Thread Starter xrafalx

    (@xrafalx)

    Hey @mariatogonon , thank you very much for help, code is working!

    Just added at the end “;”

    Regards Rafa?

    Maria T

    (@mariatogonon)

    Hi @xrafalx – thanks for letting us know and I’m happy to hear that the code works for you. ?

    By the way, if you have a moment, we would very much appreciate if you could quickly?rate the plugin, just to help us spread the word.

    Have a great day!?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Popup open/close’ is closed to new replies.