# Webflow Modal or Popup Script: Which One to Use?

> Choose how to add a popup to Webflow: a Designer modal with interactions, your own code, or a script in Footer code, with the costs and a pick per site.

By Aleksan Aharonyan, November 17, 2026. Original: https://popupgenius.app/blog/webflow-modal-vs-popup-script/

There are three practical ways to put a popup on a Webflow site: build a modal in the Designer with interactions, build that modal and drive it with your own JavaScript, or paste a popup tool's script into your site's Footer code. The Designer route is the best fit for a simple announcement you control by hand. Your own code fits a team with a developer who wants full control. A script fits when the popup has to collect emails, open on exit intent or scroll, and stay out of your project. This guide sets out what each one involves, what it costs you, and which to pick for your kind of site.

## Key takeaways

- Build the popup in the Designer when it is a simple message opened by a click or on page load, and you do not need to store signups or limit how often one visitor sees it.
- Write your own JavaScript around a Designer modal only if someone on the team will maintain it, because timing, frequency and form handling all become your code.
- Use a script in Footer code when the popup needs triggers, frequency rules, a lead list or A/B variants, and check that your Webflow plan allows custom code first.
- Whatever the route, publish the site and test on the address your visitors use, since Webflow custom code goes live only on publish.

## Option 1: a modal built in the Designer with interactions

A Designer popup is a set of elements on your page: a full-screen overlay, a box inside it, a close button, and an interaction that shows and hides them. It is part of your Webflow project, styled with your own classes.

**When it wins.** For a fixed message such as a launch announcement, a cookie-style notice you designed yourself, or a video lightbox opened by a button, this is often all you need. There is no extra account, no script, and the design is exactly what you built.

**What it costs.** The behavior is limited to what your interactions can express. Opening on a click or when the page loads is straightforward. Opening when a visitor is about to leave, showing once per visit and then not again, remembering that someone closed it, or splitting visitors between two versions all need logic that interactions alone do not keep track of. If the box contains a signup form, you also need a plan for where those addresses go and how the visitor gets a code or a download after submitting.

There is also a maintenance cost that shows up later. The modal lives on your canvas, so it is one more hidden element in every redesign, and it has to be copied onto each page or built into a component that every template uses.

## Option 2: a Designer modal driven by your own code

The second approach keeps the modal you designed and adds JavaScript that decides when it opens. Your code listens for the mouse leaving the window, measures scroll depth, sets a flag in the browser so the popup shows once per visit, and posts the form to wherever your signups go.

**When it wins.** A team with a front-end developer who wants every detail under their control, and a popup whose logic is unusual enough that no tool fits it.

**What it costs.** Everything a popup tool does becomes code you write, test and fix. Exit intent behaves differently on phones, which have no mouse. Frequency rules need storage that survives page changes. A form needs validation, a thank-you state, and a destination for the data. None of it is hard on its own, but together it is a small product, and the person who wrote it has to be around when it breaks.

The code goes in the same place as any script: your site's custom code settings, which brings in the plan requirement covered under Option 3.

## Option 3: a popup tool's script in Footer code

A script-based popup is designed in a separate tool and shown by one script tag in your site's Footer code. The popup is not an element on your canvas, so your Webflow project and its classes are untouched.

**When it wins.** When the popup has a job beyond showing a message: collecting emails into a list, showing a discount code after signup, opening on exit intent or scroll depth, showing once per visit, following a "no thanks" with a second step, or testing two versions against each other. All of that is part of the tool, so you set it rather than build it.

**What it costs.** One more account, and a popup designed outside Webflow, so you need a tool that matches your site's look. [PopupGenius](https://app.popupgenius.app/account/signup), for on-brand upsell and email popups on your website, handles that by reading the colors and fonts of your home page when you register the site, so the first draft already uses your styles. It is added with one script tag before the closing body tag, and the free plan needs no card.

### Plan requirements and where the script goes

Webflow's help article on [custom code in head and body tags](https://help.webflow.com/hc/en-us/articles/33961357265299) says custom code can be added when the site has an active Site plan, or on a Core, Growth, Agency or Freelancer Workspace. The same requirement applies to Option 2.

To install a script site-wide:

1. Open Site settings and go to the Custom code tab.
2. Paste the script tag into the Footer code section, which places it before the closing body tag on every page.
3. Click Save changes.
4. Publish the site. Custom code shows in preview, but it does not go live until you publish.

Webflow's own guidance notes that external scripts in the head can slow page loads, which is one reason to use Footer code rather than Head code. Choose which pages show the popup inside the popup tool with URL rules, instead of pasting the script on individual pages.

## Side by side

| Approach | Wins when | Main cost |
|---|---|---|
| Designer modal with interactions | A simple message opened by a click or on load | No exit intent, frequency or lead list without more work |
| Designer modal plus your own code | A developer wants full control | You build and maintain triggers, frequency and forms |
| Popup tool script in Footer code | The popup collects emails or needs triggers and tests | One more account, a paid Webflow plan for custom code |

## Which to choose for your kind of Webflow site

**A portfolio or studio site.** Start in the Designer. An announcement or a "currently booking" message opened by a button needs nothing more. Move to a script only if you start collecting emails.

**A SaaS or product marketing site.** Use a script. These sites usually want a lead magnet or a demo signup, on exit intent or after a visitor has scrolled a pricing page, and they test wording. If your team already has custom code and interactions, a script that opens on your own event lets your existing logic decide the moment: in PopupGenius the Custom JS trigger opens the popup when your page fires an event you name, or when your code calls its show function.

**A content site or blog.** Use a script with a scroll trigger on articles. The [email popup timing guide](/blog/shopify-email-popup-timing/) explains why waiting until a reader is part way down a post works better than a popup on page load, and that applies to any site.

**A Webflow Ecommerce store.** A script can show a product with its image and price and link to the product page, and it can show a signup with a discount code you created for your store. It cannot add to the Webflow cart or apply the popup's price at checkout, and the numbers you get are views, emails and clicks rather than purchases. If your offer depends on the cart, keep that in mind before you build around it.

## Testing whichever you pick

Test on the address your visitors use. A popup tool that ties popups to one registered site address will not show them on your webflow.io staging address unless that is the address you registered, so a popup that is missing on staging may be working on your custom domain.

Then go through it as a visitor would: open the live site in a private window, do what the trigger waits for, submit the form, and check that the thank-you step and the signup both arrived. Repeat on a phone, and check the close button is easy to tap. For exit intent, remember that it needs a mouse, so phone visitors need a scroll or timer trigger as well; the [exit-intent popup guide](/blog/shopify-exit-intent-popup/) covers how desktop and mobile differ.

## FAQ

### Can I make a Webflow popup without custom code?

Yes, with a modal built in the Designer and opened by an interaction. That covers a message shown on a click or on page load. Anything that needs exit intent, once-per-visit rules or a stored lead list needs code, either your own or a tool's script, and that needs a plan that allows custom code.

### Should the popup script go in Head code or Footer code?

Footer code. It places the script before the closing body tag on every page, and Webflow notes that external scripts in the head can slow page loads. Do not add the same script in both places.

### Why does my popup not show after I pasted the script?

Publish the site first, because Webflow custom code goes live only on publish. Then check that the popup itself is published in your popup tool, that its trigger has had a chance to fire, and that you opened the address you registered rather than the staging address.
