Skip to content

Custom announcement dialogs for Squarespace

Popup / Modal Generator

Build a clear announcement with a real destination, a working close button, and optional imagery. Preview the dialog before exporting the code.

Customize and preview free. Code export: $11.99 once for personal use. Compare packs and commercial licenses.

Write the announcement.

Use a real offer or useful next step. No discount, urgency, or signup promise is added for you. All content is plain text.

Use an HTTPS address, a same-site /path, or a named #section. Confirm that this destination delivers the promised next step.

Let the visitor choose when possible.

A button click is the default. Google recommends keeping promotional messages from obstructing the main content. Read Google's guidance. An automatic popup is not a search-ranking improvement.

The export includes this button. Without JavaScript or dialog support, it links directly to your destination.

Set the appearance.

Six-digit hex color.

Six-digit hex color. Text switches to black or white for contrast.

A complete HTTPS address for an image you have permission to use. Use an image hosted on your site or its image CDN.

Preview the dialog

The preview opens only when you click below, regardless of your chosen trigger. Its destination button does not navigate. Drafts stay in this open tab and are not saved to an account.

Before exporting:

  • Enter a heading for your actual announcement.
  • Enter the announcement details.
  • Enter a destination button label.
  • Enter an HTTPS destination, a same-site /path, or a named #section. A bare # link is not a destination.
  • Enter the label for the button that opens the popup.

Your next step

Like the result? Put it on your site.

Checking your tool access...

Install it on the intended page.

The export requires JavaScript in Code blocks, currently available on Squarespace Core, Plus, and Advanced. Check legacy-plan support before purchase. Read the requirements.

  1. Add a Code block to the page where the announcement belongs. Select HTML, turn Display Source off, and paste the entire snippet. Replace old popup code rather than installing another copy.
  2. For button mode, place the block where the open button should appear. For automatic modes, use only the intended pages and avoid duplicating an existing native popup.
  3. Save and check the published page while signed out. Check the trigger, Close button, Escape key, and keyboard focus. Inspect both narrow and wide screens, including long text and the actual image.
  4. Follow the real destination. A link click is not an email subscription, payment, or completed inquiry. Check the destination's actual submission or checkout process separately.
  5. For session limits, use a fresh tab session or a new reminder name when checking first-display behavior. Blocked storage can allow the popup again after a reload.

The code uses the browser's dialog element. Browsers without modal-dialog support do not show the automatic popup. In button mode, the link still reaches your destination. This preview is not proof of behavior on your published site.

Read the native and custom popup guide.