I have tried to implement a callback to close one popup from another.
Opens first on screen load and contains a simple burger icon
ID = #burgericon
Slug = burgerpopup
Using Links & Attributes this opens another popup
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.
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,Kristof Molnar | Kreatura Support Team
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.
You are welcome!