How to Add a Bitcoin Donate Button to your WordPress Website

WordPress

In a previous tutorial, we showed you how to add a PayPal donate button to your WordPress site in order to receive donations from readers. Today, we are going to show you how to add to that donation option with a dedicated Bitcoin button.

Bitcoin is becoming a popular way to make payments online, being heralded by many as the currency of the future. Bitcoin is a virtual currency and is a fast and effective way to make payments online. Featuring a donate button on your site will increase the options for readers looking to contribute to the upkeep of the site and give you an extra source of revenue.

Creating a Bitcoin Wallet

Before you can add a Bitcoin donate button to your site, there are a couple of things you will need to do. The first thing is to set up a Bitcoin Wallet, where all Bitcoins received can be stored. There are several services that allow you to do this, but BlockChain is the most popular, as it is free and simple to use.

Head over to BlockChain and select Wallet > Create My Free Wallet. Follow the instructions to create your wallet and make a safe note of your password – this cannot be recovered if you forget it.

Creating a BitPay Account

The next step is to create a BitPay account. Where BlockChain works as your Bitcoin bank account, BitPay works as the e-payment system. Create an account and wait for it to be verified – this can take a few hours.

Once your application has been approved, return to BitPay, login and select Accept Bitcoin from the top menu. Click on the eCommerce option and choose Accept Donations from the next page.

You will now be presented with a page that allows you to configure your donate button. Here you can choose whether to let donors choose the amount they donate or go with a pre-set option.

Once you’ve made your choice, you will need to fill out Merchant Name details, as well as a short description, redirect URL, email address and, if you’ve gone for the set amount, a box to enter the figure.

When set up is complete, click on Generate and choose your preferred donate button size. You will then be provided with a code to make a copy of.

Displaying the Donate Button on WordPress

Your donate button is now ready to display on your website, but first you will need to create a shortcode to ensure it works smoothly with your site. To do this go to Appearance > Editor > Functions.php from your WordPress dashboard and paste in the following code:

function wpb_bitcoin_button() {
ob_start();
[enter the copied BitPay code here]
return ob_get_clean();
}
add_shortcode('bitcoindonatebutton', 'wpb_bitcoin_donate_button');

Click on Update File to confirm the changes and your shortcode will be complete. To display your donate button on your site, you will now simply need to use the shortcode [bitcoindonatebutton] in your posts, pages or widgets.

Share it!Share on FacebookTweet about this on TwitterShare on Google+Email this to someone

Our Recommended Wordpress Web Hosting Provider

WordPress

WHC.CA
Get a 50% Discount by using our link.

WHC.ca

Reliable host, with excellent customer service and an easy one-click Wordpress installation. Our recommendation to host a Wordpress blog.

Leave a Reply

Your email address will not be published. Required fields are marked *