All Collections
Website Widgets
How to use Givebutter Widgets on a WordPress website
How to use Givebutter Widgets on a WordPress website

Add donation buttons and forms directly to your own Wordpress website.

Alyssa avatar
Written by Alyssa
Updated over a week ago

Before you start ❗

In order to install Widgets on your WordPress.com or WordPress.org site, you'll first need to download the free Givebutter Widgets plugin.

About Givebutter Widgets πŸ”Ž

Givebutter Widgets is the most powerful way to drive donations to your campaigns by putting calls to action right where your donors already are – on your website! Donors can submit a transaction (or purchase tickets) directly on your site, without being redirected.

Widgets can be used with any campaign type, including Forms, Pages and Events. Please note that an embedded Widget will not embed the entire campaign page for Pages and Events – it will embed the checkout flow.

Widgets created from the Givebutter dashboard are dynamic, which means any changes you make on Givebutter will update on your Widget, without needing to update your site's code. You can embed Givebutter Widgets on specific parts of your website by copying and pasting provided HTML code into the editor area of the website where you'd like them to appear.

Types of Widgets πŸ–₯️

  • Button – Buttons can be added anywhere on your website, and display a donation form when clicked. Buttons can be added to the header or footer section of your website. Buttons have two configurable formats, Static and Floating.

    • Static – Placed within your site formatting (such as your site navigation). Scrolls with the page when you scroll down.

    • Floating – Positioned in the lower right corner of the page and "floats" on top of your site formatting so it is always visible. Does not scroll when you scroll down the page.

  • Form – Donor-friendly donation forms can be added to any page on your website. Directly embeds the entire Form, which scrolls with the rest of the page content.

  • Goal Bar – Showcase the progress of your campaign's success with a simple goal bar reflecting performance in real time. Also available as a thermometer-style embed.

  • Signup Form – Add an embedded form (or popup) to your external website to capture potential donor information for your newsletter mailing list. Contact form entries are automatically added as new contacts in your Givebutter account.

Supported payment methods πŸ’Έ

Donors can complete transactions in a Widget using the following payment options:

Apple Pay will not appear in embedded Widgets, as limitations set by Apple prevent it from being used in iFrames. If you would like to provide this option, you will need to direct supporters to your Givebutter campaign page directly.

Customization options 🎨

Looking to customize your Widget or align it to a specific position on your site? You can alter a button's color, styling, and icon, as well as add an align attribute to position your Widget on the left, right, or center or your page. Goal bar Widgets also have configurable options for color and sizing. Read more about our available configuration options β†’

Install Widgets on WordPress βš™οΈ

You can embed Widgets on WordPress sites via shortcode, or via HTML code, but both options require installation of the Givebutter Widgets plugin. This plugin works on both WordPress.org and WordPress.com sites.

Shortcodes are better supported across WordPress pages and posts, as well as across WordPress versions that use different text editors.

Install the Widgets Plugin πŸ“–

To get started with creating and managing Widgets, visit your Givebutter dashboard.

You will need Administrator access in order to download the Givebutter widget plugin in Wordpress.

  • Go to Account on the left-hand menu bar.

  • Click Integrations – only account admins have access to the Integrations page.

  • Click Widgets, and click on the WordPress button.

widgets platform options
  • The following window will appear, with instructions on how to add the library code to your WordPress site. Follow the instructions shown, or read on for details and images showing the steps!

widget account id
  • After downloading the Givebutter Widgets plugin, head to your WordPress dashboard.

  • Click on Plugins and then click Add new.

  • Click Upload in the upper right corner of the page and upload the Givebutter Widgets plugin file you downloaded.

  • You should now see Givebutter Widgets under your Installed Plugins menu. Click Activate to enable the plugin.

givebutter widgets plugin
  • Click on Settings in the left-hand sidebar menu, and select Givebutter Widgets.

givebutter widgets settings
  • Enter your Givebutter Account ID and Save Changes.

enter account id

Where is my Givebutter Account ID?

This Givebutter Account ID is specific to Widgets. To locate it, go to your campaign's Sharing tab, click on Widgets, WordPress, and then click Installation, then click WordPress. Your Account ID is located here.

account id

Once you've saved your Account ID in WordPress, you'll install the Widget itself. Givebutter supports two ways to embed a Widget using two different content block types.

Option 1: Embed a Widget via shortcode βž•

  • In the desired location of the Widget, click on the Block Inserter icon (the large plus sign) and click on or search for Shortcode.

shortcode block
  • Once you click Shortcode, a new block will be added to your site. In the Shortcode code block, paste the Widget's shortcode, found in your Givebutter dashboard. The shortcode will be formatted like this:

[givebutter-widget id="WIDGET_ID"]
widget shortcode

Where is my Widget shortcode?

Go to your campaign's Sharing tab, and click Widgets in the sub-menu. Click Embed on the Widget you want to embed. You'll find the shortcode in the popup window.

  • Save your changes, and take a look at your published site! Click on the Widget to open up the donation checkout flow.

Option 2: Embed a Widget via HTML βž•

Alternatively, you can embed widgets using HTML.

  • In the desired location of the Widget, click on the Block Inserter icon (the large plus sign) and click on or search for Custom HTML.

custom html block
  • Once you click Custom HTML, a new block will be added to your site. In the Custom HTML code block, paste the Widget's HTML embed code, found in your Givebutter dashboard. The HTML code will be formatted like this:

<givebutter-widget id="WIDGET_ID"></givebutter-widget>
enter HTML

Where is my Widget HTML embed code?

Go to your campaign's Sharing tab, and click Widgets in the sub-menu. Click Embed on the Widget you want to embed. You'll find the HTML embed code at the top of the popup window.

embed HTML code
  • Save your changes, and take a look at your published site! Click on the Widget to open up the donation checkout flow.

donate button

Removing a Floating Button Widget from specific pages on your site

You can hide a Floating Button Widget from specific pages on your site using CSS. You'll nee the Widget ID in order to hide it. Add the following CSS to the page that you'd like to remove the Widget from, replacing "WIDGETID" with the ID of the relevant Widget:

givebutter-widget[id='WIDGETID'] { display: none; }

WordPress FAQ πŸ€”

Will Widgets still work if I used the third-party WP-code plugin?

Yes! Widgets installed using the WP-code plugin (which allows you to add custom code to your website's head) will still work. We recommend updating to the Givebutter plugin for the best support.

Will Widgets work on WordPress.org and WordPress.com sites?
Yes – Widgets (and the Givebutter Widgets plugin) are supported on both versions.


Related content πŸ“š

Did this answer your question?