> ## Documentation Index
> Fetch the complete documentation index at: https://docs.brudcast.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Install Brudcast forms on Wix

> Add the popup site script with Wix custom code, and embed a form with an Embed HTML element.

On Wix, add the site script as custom code so popups can show on every page, and use the
**Embed HTML** element for an embedded form. Custom code needs a connected domain and a premium
plan.

**Screenshot coming soon**

Wix Custom Code settings with the Brudcast site script set to load on all pages in the head

> [!NOTE]
>
> **Before you start:** add your site's domain under **Contacts > Forms > Websites** and copy the
> install snippet.

## Install the site script

**1. Open Custom Code**

In your site's dashboard, go to **Settings** and select **Custom Code** under **Advanced**.

**2. Add the snippet**

Select **Add Custom Code** and paste the install snippet:

```html theme={"system"}
<script src="https://forms.brudcast.com/site.js" data-site="your_site_key" async></script>
```

**3. Choose where it loads**

Name it `Brudcast site script`. Under **Add Code to Pages**, choose **All pages** and
**Load code once**. Under **Place Code in**, choose **Head**. Select **Apply**.

## Embed a form

Wix puts embedded HTML in its own frame, so use the plain iframe here rather than the script
embed, which can't size itself from inside Wix's frame.

1. In the Editor, select **Add Elements**, then **Embed Code** and **Embed HTML**.
2. Select **Enter Code**, choose **Code**, and paste the form's **Plain iframe** code:

```html theme={"system"}
<iframe
  src="https://forms.brudcast.com/embed/your_form_id"
  title="Newsletter"
  width="100%"
  height="720"
  style="border: 0; display: block;"
  loading="lazy"
></iframe>
```

3. Select **Update**, then drag the element's edges to fit the form. Publish the site.

## Related

> **[Popups](/forms/popups.md)**
>
> Create the popups the site script shows.

> **[Embed a form](/forms/embed-a-form.md)**
>
> Embed variants, layouts and prefill.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.