Would you like to add a PayPal donate button on your WordPress site?
With PayPal, you can easily accept donations on your website. It's convenient, inexpensive, secure, and is already used by millions of users around the world.
In this article, we're going to show you how to easily add a PayPal Donate button on your WordPress site.
Why use a PayPal donate button in WordPress?
Many bloggers add PayPal donation buttons on their WordPress websites to help cover the running costs of the website.
Non-profit organizations also use their websites to raise funds for their own purposes. The PayPal donation button offers you an easy way to accept donations.
Tip: If you want a more comprehensive fundraising solution, check out these best donation and fundraising plugins for WordPress.
Before you begin, you'll need to create a PayPal account or log into your existing account.
Since this is a comprehensive guide, we've created a table of contents so you can easily jump to the section you want:
- How to Add PayPal Donate Button in WordPress (Free Plugin)
- How to add a smart PayPal donation form in WordPress (using WPForms)
- Manually Adding a PayPal Donation Button in WordPress (Code Method)
1. How to Add PayPal Donate Button in WordPress (Free Plugin)
This method is recommended if you are looking for a free WordPress PayPal donation plugin. It's easier, but very limited in terms of your options.
First, you need to install and activate the PayPal Donations plug-in. For more information, see our step-by-step guide on installing a WordPress plugin.
After activation, go to Settings »PayPal donations Page to create your donate button.
Here you have to enter your PayPal e-mail address. This is the address you use to log into PayPal.
By default, the donation currency is US dollars. To change this, simply select your preferred currency from the drop down menu.
You may want to create a thank you page on your website and set it up as a return page in the Optional Settings section.
You can optionally add a standard amount, purpose, and reference for your PayPal donations.
Next, you can choose a PayPal button style or enter a URL for a custom button image. You can also change the donation country and language, which are used by default in the United States and the United States.
When you're done, don't forget to click the "Save Changes" button to save your settings.
Adding your PayPal donation button to your website
The plugin allows you to display the PayPal donation button anywhere on your WordPress website using a shortcode.
Just edit the post or page you want to display the donate button on, then add the shortcode block in the content editor.
In the settings you have to add a shortcode (PayPal donation). You can now save your changes and preview your post or page.
Here is the donation button live on our demo site.
This plugin also lets you add the PayPal Donate button to a sidebar or footer widget. Just go to the Appearance »Widgets Page and drag the PayPal donation widget to your sidebar or footer.
The widget has the same settings. So you only have to enter a title and a text. Don't forget to hit the save button to create your widget.
Here is the donation widget in the sidebar of our demo website.
2. How to add a Smart PayPal donation form in WordPress (using WPForms)
Another great way to create a PayPal donation button is through WPForms. It's the best WordPress Form Builder plugin on the market, used by over 3 million website owners.
WPForms is an easy way to create beautiful donation forms that you can use to accept credit card and / or PayPal payments.
This method gives you more flexibility.
You can collect donor information, add it to your email list (WPForms works with all top email marketing services), collect phone numbers, polls, conduct polls and much more.
Basically, you can get in touch with users to build a stronger community.
Note: You need the Pro version of WPForms or higher to take PayPal payments.
First you need to install and activate the WPForms plugin. For more information, see our step-by-step guide on installing a WordPress plugin.
After activation, visit the WPForms »Settings Page to enter your license key. You can find this information under your account on the WPForms website.
Next go to WPForms »Addons Page. Here you have to install the PayPal Standard Addon. Just find it in the list and hit the Install Addon button.
The add-on will be installed and activated for you automatically.
Now it's time to create your donation form.
Just go to the WPForms »Add new Page in your WordPress administration area to start the form builder.
First you need to provide a title for your form and then select the template for the donation form.
WPForms now automatically loads your form template into the WPForms Builder. It's easy to add, remove, or change the fields on your form.
To add a field, just click the Add Fields tab on the left. We have a multiple choice field "How did you hear about us?" Added.
You may want to change the Submit button to read Donations instead. To do this, either click the button or go to Settings »General Tab for your form.
When you're happy with your form, click the Save button above to save your changes.
Next you need to go Payments »Paypal Standard to set up payments for your form.
Simply check the "Enable PayPal Standard Payments" option and enter your PayPal email address. Under Payment Method, select Donate.
When you're done, click the Save button to save your settings.
Tip: You can send donors a receipt for their donation. To do this, see our instructions for creating a multi-recipient form.
Adding your donation form to your website
Once you've created your PayPal donation form, it's ready to be added to your website.
WPForm makes it easy to add forms anywhere on your website.
Just create a new post or page, or edit an existing one. Then add a WPForms block to the WordPress content editor and select the form you created earlier from the drop-down menu.
When you're done, you can preview or publish your page to see your donation form live on your website.
Congratulations, you have now created a smart Paypal donation form in WordPress.
3.Manually adding a PayPal donation button in WordPress (code method)
If you don't want to install a plugin or are using WordPress.com instead of WordPress.org, you can manually add a PayPal donation button.
First you need to log into your PayPal account and go Pay and get paid »PayPay buttons Page.
On the next page just click the "Donate" button.
Now you can follow the on-screen instructions to create your button.
On the final screen of the Create Button Wizard, click the "Finish and Get Code" button.
You will now see a page with a shareable link. This is the url you need. Keep it open in this tab or save it in a safe place.
Next, go to your WordPress admin area and edit a post or page where you want to add the PayPal donation button.
You'll need to add a new HTML block to your page or use text mode if you're using the classic editor.
Paste the following code into your HTML block:
Make sure to replace the words "your shareable link that you received from PayPal" with the actual link from PayPal.
Publish your page. You now have a PayPal donate button on your WordPress site without using a plugin.
Tip: You can also paste this HTML into a WordPress custom HTML widget to add to your sidebar.
Here is a live example of the donate button:
Feel free to click on it to see how it works. You can make a donation to help us if you found this article helpful.
The reason we chose the shareable link instead of the full code for the donation button is because you can easily customize the donation picture.
Below are a few other official PayPal donation buttons. Just copy and paste the code and replace the image section in your main code above.
If you don't like any of these images, you can create your own. Just upload the image to your WordPress media library and get the file link. Next, paste this link into the following code:
Best PayPal donation plugins for WordPress
We recommend the PayPal donation plugin as the easiest way to add a PayPal donation button to your website. It's free and very easy to use.
If you want to collect information from your donors, WPForms is the best option for you.
If you want more options to choose from, here are some other good PayPal donation plugins.
- PayPal Donation – This plugin is owned by an official PayPal partner. It supports all languages and currencies from PayPal.
- Seamless Donations – This plugin works with both Stripe and PayPal.
- PayPal Donate Button – This plugin can send a donor confirmation email.
We hope this article has helped you add a PayPal donate button in WordPress. You might also like our time-tested tips on how to make money online with WordPress and our guide on how to increase your website traffic.
If you enjoyed this article, please subscribe to our YouTube channel for WordPress video tutorials. You can also find us on Twitter and Facebook.