The Two Main Options

Donorbox gives you two ways to add a donation form to your site:

1. Embed on your own website — the form appears inline on your page, fully branded, without sending donors to a separate site.

2. Donorbox-hosted donation page — Donorbox hosts a standalone donation page at a URL like donorbox.org/your-organization. You can link to this page from anywhere — your website, social media, email campaigns, or QR codes — without embedding anything.

Both options are available on all plans. Most organizations use both: the embedded form on their website's donation page, and the hosted page link for external campaigns and social media.

How to Embed on Your Website

Donorbox provides an embed code — a short JavaScript snippet — that you copy from your Donorbox dashboard and paste into your website. The form renders inline on your page and is fully branded with your organization's colors and logo.

From your Donorbox dashboard:

  1. Go to your campaign
  2. Click Embed & Share
  3. Copy the embed code
  4. Paste it into your website page

Where you paste it depends on your platform — see the platform-specific instructions below.

WordPress

Option 1 — Plugin (easiest): Install the free Donorbox plugin from the WordPress plugin directory. Once activated, you can embed your form using a shortcode or the Gutenberg block — no code required.

Option 2 — Manual embed: Add a Custom HTML block to your page in the Gutenberg editor and paste the embed code. Alternatively, paste it into a Text widget in a sidebar or footer.

Squarespace

  1. Add a Code Block to your page
  2. Paste the Donorbox embed code into the code block
  3. Save and publish

Wix

  1. Go to your page editor
  2. Add an HTML iFrame element (found under Embed → HTML iFrame)
  3. Paste the embed code
  4. Resize and position the element as needed
  5. Publish

Webflow

  1. Add an Embed element to your page canvas
  2. Paste the Donorbox embed code
  3. Save and publish

Weebly

  1. Drag an Embed Code element onto your page
  2. Click Edit Custom HTML
  3. Paste the embed code
  4. Save

Custom HTML Sites

Paste the embed code directly into your page's HTML where you want the form to appear. No special configuration needed.

Customizing Your Donation Form

Before or after embedding, you can customize your form extensively from the Donorbox dashboard:

  • Suggested donation amounts — set 3–4 preset amounts with optional descriptions (e.g., "$25 feeds a family for a week")
  • Recurring giving options — enable weekly, monthly, quarterly, or annual recurring donations
  • Campaign goal — display a progress thermometer showing how close you are to your fundraising target
  • Custom fields — add questions to collect information from donors (how they heard about you, dedication/tribute, etc.)
  • Branding — your logo, colors, and custom thank-you message
  • Fee covering — enable the option for donors to cover platform fees

All changes apply to your embedded form instantly — no need to update the embed code.

Testing Before You Go Live

After embedding, Donorbox provides a test mode that lets you simulate donations using test card numbers without processing real payments. Use this to verify the form looks right on your page and the full donation flow works before announcing it to donors.

Set up your free Donorbox account and embed your form today →

This article contains affiliate links. We may earn a commission if you sign up through our links, at no extra cost to you.