Skip to main content
Solved

POP-UP FORM NOT SHOWING ON WIX SITE ON CLICK

  • December 9, 2025
  • 2 replies
  • 27 views

Forum|alt.badge.img

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!

Best answer by ArpitBanjara

Hey ​@UpCrib Inc. 

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

2 replies

ArpitBanjara
Principal User I
Forum|alt.badge.img+36
  • Principal User I
  • Answer
  • December 9, 2025

Hey ​@UpCrib Inc. 

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


Forum|alt.badge.img
  • Author
  • Contributor I
  • December 10, 2025

Thank you! Will try it out!