Okay
  Public Ticket #2573651
Using API to close another Popup
Closed

Comments

  • Paul Daly started the conversation

    Hi,

    I have tried to implement a callback to close one popup from another.

    Popup 1

    Opens first on screen load and contains a simple burger icon

    ID =  #burgericon

    Slug = burgerpopup

    Using Links & Attributes this opens another popup 

    Popup 2

    ID = #opennavmenu

    Slug = menupopup

    I would like to close Popup 1 (burger popup) when the Popup 2 completes and then open again when Popup 2 closes.  I cannot seem to reference either popup using the API.

    Please can you help.

  •   Paul Daly replied privately
  •  244
    Kreatura Support replied

    Hello Paul,

    Thank you for getting in touch with us!

    I added the burger-popup class to your burger icon slider in the appearance tab.
    After that I wrote a custom js code to the menu popup / event callbacks /  popupWillOpen and popupDidClosed function to achieve this feature. Please check it.

    Best Regards,
    Andrea | Kreatura Support Team

  • Paul Daly replied

    Excellent Kristof,

    I was so close!  And I have unchecked the Prevent Reopening it works like a charm, I'll rework the timings a bit but works just like a burger menu now than you.

  •  244
    Kreatura Support replied

    You are welcome!smile.png

    Best Regards,
    Andrea | Kreatura Support Team