Limited availability during the holidays

Another busy year is coming to its end, and an exciting year lies ahead. In order to get ready for a fresh new start, our team will spend a few days' rest during the winter holidays. Over the holiday break, we will have reduced staffing from December 20th, 2024, to January 5th, 2025, so please be patient if you do not receive a response as quickly as you normally would.

We send our warmest wishes for happiness, health, and success throughout the coming year. Thank you for your continued support, and may you have a peaceful and blessed Happy Holidays!

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