How to Embed a Donation Form on Your WordPress Site

Ready to start collecting donations through your WordPress website? This step-by-step guide shows you two easy ways to embed your Donorbox form and start raising funds today.

Written by: Raj
How to Embed a Donation Form on Your WordPress Site
Subscribe to our e-newsletter to receive the latest blogs, news, and more in your inbox.
❤ Join the fundraising movement!
Subscribe to our e-newsletter to receive the latest blogs, news, and more in your inbox.

Want to start collecting donations on your WordPress site? With Donorbox, it’s quick and easy. 

Whether you prefer to use our WordPress plugin or embed your form using HTML code, you’ll have a customized, conversion-optimized donation form live on your site in no time!

In this guide, we’ll walk you through both options, so you can choose the one that works best for your setup.


Option 1: Add a Donation Form Using the Embed Code

If you want to save time or prefer not using a plugin, embedding via code is a great option. This method works well with both the Classic Editor and Gutenberg Block Editor. 

Here’s an example of how your embedded form could look on your WordPress site:

Screenshot of a Donorbox embedded donation form

Get Started with Donorbox

Here’s how to set it up.


Step 1

If you haven’t already, create your campaign on Donorbox! This detailed blog will take you through the process. 

Top tip: If you want to add a recurring donation form on WordPress, choose up to four different intervals to add to your form from our selection of eight options:

Screenshot of the different recurring intervals you can add to your Wix recurring donation form


Step 2

Go to your Donorbox campaigns page, and find the campaign you wish to embed on your site. Click the “Share & Embed” button on the campaign box.

You’ll find yourself on the Share & Embed page. 

Decide how you’d like your form to appear on your WordPress site. Donorbox has a few options to choose from:

  • A standard embedded form that appears on your WordPress page. 
  • A normal donate button or sticky donate button linking to your pop-up donation form.
  • A normal or sticky donate button linking to your Donorbox-hosted campaign page. 

Navigate between your respective options here:

Unless you’re choosing to link to a hosted donation page, you’ll also see two form variations: our Classic Form and our OmniGive™ Donation Form. While both are innovative, we strongly recommend you choose the latter.

Screenshot of embedded form share and embed page

The OmniGive™ donation form opens a door to a plethora of benefits for your organization and donors, including 22+ payment methods dynamically displayed based on your donor’s location and device. Learn more about the benefits of the OmniGive donation form in this blog post.


Step 3

Copy the generated HTML code for whichever option you choose. 


Step 4

Go to the page or post in WordPress where you’d like to add your donation form/button. 

Whether you choose the Classic Editor or newer Gutenberg Editor, here’s how to add the embed code to your page.

Classic Editor

Make sure you are on the text editor (not the visual editor). Paste the donation form embed code in the area that you want the form to appear. Publish your post when you are done!

donation forms on wordpress

Gutenberg Editor

Make sure you’re viewing the page using the block editor. Click the + sign to add a block for the donation widget, selecting “Custom HTML”.

wordpress donation forms

Paste the embed code snippet you copied from Donorbox into the text box.

recurring donation on wordpress

For a preview of how the widget will appear on your page, you can click Preview. Finally, publish or save the post when you’re happy with the results.


Option 2: Add a Donation Form Using the Donorbox WordPress Plugin

Our free WordPress plugin lets you embed your Donorbox donation form in just a few clicks – no HTML codes required. 

Here’s how to set it up.


Step 1

In your WordPress dashboard, go to Plugins > Add New. 


Step 2

In the WordPress plugin search bar, type “Donorbox” and press enter.


Step 3

Once you’ve found the Donorbox WordPress donation plugin, click “Install Now.”


Step 4

Once the plugin has been installed, click to activate it.


Step 5

Now, go to your Donorbox campaigns page and find the campaign you wish to embed on your WordPress site. 

Click on the “Copy URL” button.


Step 6

Head back to your WordPress dashboard. In the left-hand sidebar, click on “Settings”, and then “Donorbox.”


Step 7

Paste your campaign URL into the appropriate textbox, and click “Save Changes.”


Step 8

Go back to the WordPress page editor of your donation page.

Make sure you are on the text editor for your post (and not the visual editor). Type in one of the following shortcodes to embed the donation form using the WordPress donate plugin:

Here are a few things to keep in mind during this process:

  • Don’t forget to replace “nonprofit campaign” with your own campaign name and URL.
  • If you choose to use one of the shortcodes with a URL, then that campaign URL will be used. Otherwise, the default URL you entered in the plugin settings will be used.
  • Using one of the donate-with-info shortcodes will include the campaign description and legal disclaimer that you drafted on Donorbox.

 In the old editor, this is how it will appear:


Step 9

Publish your post and wait for your WordPress donations to come in!


Start Fundraising on WordPress With Donorbox Today

Whether you use the WordPress plugin or embed code, Donorbox makes it easy to add powerful donation tools to your website. 

With recurring giving built in, multiple payment methods, and deep customization, get ready to turn site visitors into loyal supporters!

Sign up today for free. And for more tips and fundraising strategies, check out the rest of the Nonprofit Blog

Avatar photo

Raviraj heads the sales and marketing team at Donorbox. His growth-hacking abilities have helped Donorbox boost fundraising efforts for thousands of nonprofit organizations.

  • facebook
  • twitter
  • instagram
  • linkedin
  • tumblr
Subscribe to our e-newsletter to receive the latest blogs, news, and more in your inbox.
❤ Join the fundraising movement!
Subscribe to our e-newsletter to receive the latest blogs, news, and more in your inbox.

Join the fundraising movement!

Subscribe to our e-newsletter to receive the latest blogs, news, and more in your inbox.

Take your donor experience to the next level!
Join the 50,000+ nonprofits already raising funds online.
See for yourself how easy fundraising can be with Donorbox.
See for yourself how easy fundraising can be with Donorbox.