When a popup appears every time you visit the home page after changing its trigger to "load," it's usually due to the Webflow interaction settings applying on every page load rather than checking if it's already been shown before.
1. Check the Page Load Trigger Settings
- Go to the Webflow Designer, select the home page.
- Open the Interactions panel (lightning icon).
- Locate your Page Load trigger and check which animation or element is set to show the popup.
- Make sure it is only assigned to the correct page and not affecting site-wide components unless intended.
2. Adjust the Interaction to Prevent Repeat Triggers
- If your interaction shows the popup “on page load,” it will appear every time the user returns unless otherwise controlled.
- Options to manage this:
- Change the trigger type to something more user-based (e.g., click, scroll, or on first view).
- Use Webflow’s session-based logic (via custom code) if you want the popup to show once per session.
3. Use Webflow's Built-in Display Logic (If Minor)
- You can hide the popup element by default and only show it when specific conditions are met.
- Add a Timed Animation that:
- Sets display: block or opacity: 100% after a delay or under certain user actions.
- Use the Initial State setting to ensure it’s hidden at first.
4. Use Custom Code to Show the Popup Once per Session
If Webflow’s native interactions aren’t enough, add JavaScript inside Project Settings → Custom Code or inside an Embed element:
- Add a
sessionStorage or localStorage check before showing the popup. - Example (not including full code per guidelines): use inline logic like
if (!sessionStorage.getItem('popupShown')) { show popup logic; sessionStorage.setItem('popupShown', 'true'); }.
Summary
The popup keeps appearing since the “page load” trigger runs every visit. To fix it, either change the trigger type, modify the animation workflow, or add custom code to limit how often it displays.