# WordPress

MuxForms on WordPress is a Custom HTML block with your form div and embed.js—no Contact Form 7 or PHP mail. Allow the WordPress site URL on the form so browser submissions pass CORS, then read leads in the same inbox as your other sites.

## WordPress setup

| Step | Detail |
| --- | --- |
| Block | Custom HTML |
| Markup | div[data-form-id] + script |
| Origin | https://your-wp-site.com |
| Inbox | Shared with non-WP forms |

## Custom HTML block

Avoid another plugin that emails the admin account and dies on host changes. MuxForms stores the payload in Postgres and can email a verified domain.

```
<div data-form-id="FORM_UUID"></div>
<script src="https://www.muxforms.com/embed.js" defer></script>
```

## Full-site editor

In block themes, add the same snippet to a Custom HTML block on your Contact template. Clear any page cache plugin after publishing.

## FAQ

### Do I need a plugin?

No plugin is required—only the embed snippet and an allowed origin.

### Will PHP mail matter?

No. MuxForms stores submissions and emails via its own sending domain.

### Can I style the form?

Use form appearance settings in MuxForms; theme CSS wraps the block.

### What if I change hosts?

Update the allowlist origin if the public URL changes.

---

HTML version: https://www.muxforms.com/docs/wordpress
Source: MuxForms (https://www.muxforms.com)
