Im trying to get connect a button element to activate our pop up form from Klaviyo on Wix.
The button is in the hamburger menu, could that be the issue?
I have literally put 10+ hours trying to figure this out thinking it would be simple.
Is there any one I could pay to fix this? or is there a fix to this never ending problem?
Thank you in advance!
POP-UP FORM NOT SHOWING ON WIX SITE ON CLICK
Best answer by ArpitBanjara
Hey
Yes — the hamburger menu is almost definitely the reason the Klaviyo pop-up isn’t opening. Wix loads those menu items in a weird, dynamic way, so when Klaviyo tries to attach its click trigger on page load, it can’t “see” the button inside the menu. That means the trigger never connects, and the button ends up doing nothing. You’re not doing anything wrong — this is a very common headache with Wix.
The other thing working against you is that the button inside a Wix menu isn’t always a real HTML button. It’s more like a menu item wrapped inside Wix’s own structure, so when you try to add the Klaviyo trigger attribute, Wix either strips it out or just doesn’t register it. That’s why it feels like no matter what you try, nothing changes.
The most reliable way is to skip Klaviyo’s built-in trigger completely and use a tiny bit of custom code that forces the pop-up to open when your menu button is clicked. You add the script once in Wix (under Settings → Custom Code), and then simply give your menu button a class name like open-klaviyo-popup. The script listens for clicks on that class and manually opens your Klaviyo form. It works even when the button is hidden inside the hamburger menu. Here’s the code:
<script>
document.addEventListener("click", function (e) {
if (e.target.closest(".open-klaviyo-popup")) {
window._klOnsite && window._klOnsite.openForm('YOUR_FORM_ID');
}
});
</script>add your form_id where it says ‘YOUR_FORM_ID’ and you also see open-klaviyo-popup class name referenced.
your pop-up should open reliably, no matter where the button lives.
I hope this helps and thank you for sharing your question here in the community. if you are still stuck, feel free to schedule a call with us
Cheers
Arpit
Log in to the Community
Use your Klaviyo credentials
Log in with Klaviyo
Use your Klaviyo credentials
Log in with KlaviyoEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.

