Skip to main content
Solved

Teaser custom trigger only works once

  • February 26, 2026
  • 2 replies
  • 29 views

Forum|alt.badge.img

Background:

I have a custom Shopify theme that uses CSS “animation: none !important “ when the user has prefers-reduced-motion on. 

I know this is not recommended behavior, but it touches too many things for me to remove it completely.

I have modified the CSS and added JavaScript so that popup signup form will close properly using either the X or clicking outside the form..

I am now trying to make clicking on a teaser re-open the popup form.

 

Problem:

When prefers-reduced-motion is off, everything works fine. I can click on the teaser and close the popup form as many times as I want.

When prefers-reduced-motion is on, clicking on the teaser opens the popup form once. After the popup is closed it will not open again. I have added console.logs and I can see that the click event is firing the first time, but never again. I can see in dev tools that the event listener on the teaser button is still set. Even when I rebuild the event listener on the teaser when the popup is closed it still will not fire again.

The JavaScript to open the form is

window._klOnsite = window._klOnsite || [];
window._klOnsite.push(['openForm', formID]);

 

I have read that JavaScript triggers can be blocked by form settings that prevent showing the form after the user dismisses it. Is there a way around that for teasers? Clearly the Klaviyo native teaser code can ignore it. 

Best answer by Byrne C

Hi ​@Diana Lomarcan,

Might be worth having our support team take a look at this one. If you reach out to Klaviyo.com/support, we can investigate this, and either rule out any issues on Klaviyo’s side, or send it to a specialist on our team to look into if it ends up looking like unexpected behavior.

Would also love to hear if any other community members have dealt with form issues similar to this one!

2 replies

Byrne C
Community Manager
Forum|alt.badge.img+28
  • Community Manager
  • Answer
  • March 3, 2026

Hi ​@Diana Lomarcan,

Might be worth having our support team take a look at this one. If you reach out to Klaviyo.com/support, we can investigate this, and either rule out any issues on Klaviyo’s side, or send it to a specialist on our team to look into if it ends up looking like unexpected behavior.

Would also love to hear if any other community members have dealt with form issues similar to this one!


Forum|alt.badge.img
  • Author
  • Contributor I
  • March 4, 2026

Thanks ​@Byrne C. I’ll contact support.