Guides

Add a donation form to your website

Whatever your site is built with, there's a way to add your form. Your dashboard shows the same steps with your own code filled in, ready to copy.

Smart embed

Two lines of code. The form sits on your page at its full height, so nothing around it moves while donors give.

Iframe

For builders that keep code in a box of their own. Set the box tall enough and the form scrolls inside.

Donate button

A link to your hosted donation page. Works on every plan and in emails and social posts.

WordPress (your own hosting)

  1. Edit the page and click + to add a block.
  2. Choose Custom HTML and paste the smart embed code.
  3. Update the page. The form appears when you view it.
  4. For a popup instead, paste the button code in the same way.
Smart embed (resizes itself) (example)
<div data-edonating-form="YOUR-FORM-ID"></div>
<script src="https://edonating.com/embed.js" async></script>
Popup button (example)
<div data-edonating-form="YOUR-FORM-ID" data-mode="button" data-label="Donate" data-color="#760533"></div>
<script src="https://edonating.com/embed.js" async></script>

WordPress.com

  1. Edit the page and click + to add a block.
  2. Choose Custom HTML and paste the smart embed code, then update the page.
  3. If the form doesn't show, your plan removes code from pages: add a Buttons block instead, set its link to your donation page address, and name it Donate.

WordPress.com only keeps scripts and iframes on plans that allow plugins. Every plan can use a Donate button linking to your page.

Smart embed (resizes itself) (example)
<div data-edonating-form="YOUR-FORM-ID"></div>
<script src="https://edonating.com/embed.js" async></script>
Donate button (no code) (example)
<a href="https://edonating.com/your-charity/winter-appeal" target="_blank" rel="noopener"
  style="display:inline-block;background:#760533;color:#fff;padding:12px 28px;border-radius:999px;font:600 16px/1 sans-serif;text-decoration:none">Donate</a>

Wix

  1. In the Wix Editor, click Add Elements (+), then Embed Code, then Embed HTML.
  2. Click Enter Code, choose Code, paste the iframe code and click Update.
  3. Drag the box to about 1600px tall and 480px wide so the whole form fits, then publish.
  4. For a Donate button instead, add a Wix button and link it to your donation page address.

This builder shows code inside a box of its own, so Apple Pay and Google Pay may not appear there. Card payments always work, and the form offers a link to the secure page for wallets. You can also add a Donate button that opens it.

Iframe code (example)
<iframe src="https://edonating.com/f/YOUR-FORM-ID?embed=1" title="Donation form" allow="payment *" loading="lazy"
  style="width:100%;max-width:480px;height:1600px;border:0;display:block;margin:0 auto"></iframe>
Your donation page address (example)
https://edonating.com/your-charity/winter-appeal

Squarespace

  1. Edit the page, click Add Block (+) and choose Code.
  2. Paste the smart embed code, turn off Display Source, and save.
  3. If the form doesn't appear, try the iframe code in the same Code block.
  4. Or add a Button block linking to your donation page address.

Squarespace only runs code on some plans. If neither code shows on your plan, use the Button block.

Smart embed (resizes itself) (example)
<div data-edonating-form="YOUR-FORM-ID"></div>
<script src="https://edonating.com/embed.js" async></script>
Iframe code (example)
<iframe src="https://edonating.com/f/YOUR-FORM-ID?embed=1" title="Donation form" allow="payment *" loading="lazy"
  style="width:100%;max-width:480px;height:1600px;border:0;display:block;margin:0 auto"></iframe>
Your donation page address (example)
https://edonating.com/your-charity/winter-appeal

Webflow

  1. Open the Add panel and drag a Code Embed element onto the page.
  2. Paste the smart embed code and save.
  3. Publish the site. The form shows on the live site, not in the Designer.

Code Embed needs a paid Site plan or Workspace plan.

Smart embed (resizes itself) (example)
<div data-edonating-form="YOUR-FORM-ID"></div>
<script src="https://edonating.com/embed.js" async></script>

Framer

  1. Click Insert, then Embed, and drag it onto the page.
  2. Set the type to URL and paste the form address.
  3. Set the embed's height to about 1600px and its width to Fill, up to 480px, then publish.

This builder shows code inside a box of its own, so Apple Pay and Google Pay may not appear there. Card payments always work, and the form offers a link to the secure page for wallets. You can also add a Donate button that opens it.

Form address (for embed by URL) (example)
https://edonating.com/f/YOUR-FORM-ID?embed=1
Your donation page address (example)
https://edonating.com/your-charity/winter-appeal

Shopify

  1. Go to Online Store, Themes, and click Customize.
  2. Open the page where the form should go, click Add section, and choose Custom Liquid.
  3. Paste the smart embed code and save.
Smart embed (resizes itself) (example)
<div data-edonating-form="YOUR-FORM-ID"></div>
<script src="https://edonating.com/embed.js" async></script>

Google Sites

  1. Click Insert, then Embed, then the Embed code tab.
  2. Paste the iframe code, click Next, then Insert.
  3. Drag the box to about 1600px tall, then publish.

This builder shows code inside a box of its own, so Apple Pay and Google Pay may not appear there. Card payments always work, and the form offers a link to the secure page for wallets. You can also add a Donate button that opens it.

Iframe code (example)
<iframe src="https://edonating.com/f/YOUR-FORM-ID?embed=1" title="Donation form" allow="payment *" loading="lazy"
  style="width:100%;max-width:480px;height:1600px;border:0;display:block;margin:0 auto"></iframe>
Your donation page address (example)
https://edonating.com/your-charity/winter-appeal

Ghost

  1. In the editor, click + and choose HTML.
  2. Paste the smart embed code and publish.
Smart embed (resizes itself) (example)
<div data-edonating-form="YOUR-FORM-ID"></div>
<script src="https://edonating.com/embed.js" async></script>

Carrd

  1. Add an Embed element and set its type to Code.
  2. Paste the smart embed code and publish.
  3. Without embeds on your plan, add a Button element linking to your donation page address.

Carrd's Embed element needs a Pro plan.

Smart embed (resizes itself) (example)
<div data-edonating-form="YOUR-FORM-ID"></div>
<script src="https://edonating.com/embed.js" async></script>
Your donation page address (example)
https://edonating.com/your-charity/winter-appeal

Any other website

  1. Paste the smart embed code where the form should appear.
  2. For a popup instead, paste the button code.
  3. If your builder doesn't run scripts, use the iframe code.
Smart embed (resizes itself) (example)
<div data-edonating-form="YOUR-FORM-ID"></div>
<script src="https://edonating.com/embed.js" async></script>
Popup button (example)
<div data-edonating-form="YOUR-FORM-ID" data-mode="button" data-label="Donate" data-color="#760533"></div>
<script src="https://edonating.com/embed.js" async></script>
Iframe code (example)
<iframe src="https://edonating.com/f/YOUR-FORM-ID?embed=1" title="Donation form" allow="payment *" loading="lazy"
  style="width:100%;max-width:480px;height:1600px;border:0;display:block;margin:0 auto"></iframe>

No website, or social media

  1. Share your donation page address in emails, newsletters, social posts and your link in bio.
  2. It's a full page with your logo and colours, and works on any phone.
Your donation page address (example)
https://edonating.com/your-charity/winter-appeal

Is an embedded form safe?

Keep your website's own login safe too: anyone who can edit your pages could change what's on them.

Create your form