Skip to main content
The Button Widget creates an attractive, clickable button on your website that opens a donation form in a popup modal. It’s perfect for adding donation functionality without disrupting your page layout.

Prerequisites

Before using the Button Widget, make sure you’ve installed the Widgets library.

Quick Setup

The fastest way to add a button widget is through the Givebutter Dashboard:
  1. Visit your Givebutter Dashboard
  2. Select your campaign and navigate to Sharing > Widgets
  3. Choose Button as the widget type and customize the appearance
  4. Copy the generated code and paste it on your site

Manual Setup

For full control without using the dashboard, create buttons directly with the <givebutter-button> tag:

Configuration Options

Customize your button’s appearance by adding attributes to the <givebutter-button> element:

Required Attributes

Styling Attributes

Positioning

Use these attributes to create a fixed-position floating button:

Examples

Troubleshooting

Button not appearing? Make sure you’ve installed the Widgets library on your page and that your campaign code is correct.
Color not working? Hex codes must include the # symbol (e.g., #FF8A00 not FF8A00).