Prerequisites
Before getting started, you’ll need:- A Squarespace Core, Plus, or Advanced plan
- A Givebutter account with at least one published campaign
- Your Givebutter library code and Widget ID
Widget Types Available
Button Widget
Static (scrolls with page) or Floating (fixed lower-right) formats
Form Widget
Complete donation forms embedded directly on any page
Goal Bar
Real-time campaign progress display with thermometer-style option
Signup Form
Capture donor information for mailing lists
Supported Payment Methods
Donors can complete transactions using:- Credit and debit cards
- PayPal
- Venmo (desktop only)
- Google Pay
- ACH transfers (if enabled)
- Donor-Advised Funds (DAF)
Note about Apple Pay: Apple Pay cannot function in embedded widgets due to Apple restrictions
on iframe usage.
Installation
The installation process has two main steps: adding the library code to your site header, then embedding specific widgets on pages.Step 1: Add the Library Code
1
Get Your Library Code
- Log into your Givebutter dashboard
- Navigate to Settings → Developers → Widgets
- Click the Squarespace button
- Copy the provided library code
2
Access Code Injection
- In your Squarespace account, go to Website → Pages 2. Under Utilities, select Website Tools 3. Click Code Injection
3
Paste Library Code
- Paste the library code in the Header section
- Click Save at the top right
The library code needs to be added only once and enables all widgets across your entire site.
Step 2: Embed the Widget
1
Get Your Widget Embed Code
- Go to your campaign’s Sharing tab in Givebutter
- Click Widgets
- Select the widget type you want to embed
- Click Embed
- Copy the widget embed code
2
Add to Squarespace Page
- Navigate to the page where you want the widget 2. Click Edit to enter edit mode 3. Click the + icon where you want to add the widget 4. Select Code block from the menu
3
Paste Widget Code
- Paste your widget’s embed code in the Code block
- Click outside the code block to save
- Click Save in the top left
- Click Exit to leave edit mode
Widget Customization
Positioning Floating Buttons
By default, floating button widgets appear in the lower-right corner. To change the position, add theposition attribute to your embed code:
bottom-right(default)bottom-left
Hiding Widgets from Specific Pages
To hide a floating widget from specific pages, add this CSS to that page’s Code Injection:- Go to Pages → select the page
- Click the gear icon → Advanced
- Scroll to Page Header Code Injection
- Add:
YOUR_WIDGET_ID with your actual Widget ID.
Advanced: Static Button in Header
You can add a static donation button to your Squarespace header navigation using custom JavaScript.1
Add JavaScript Code
- Go to Website Tools → Code Injection
- Paste this code in the Footer section:
- Replace the selector with your actual widget element
- Click Save
2
Add Button in Squarespace
- Go to Design → Navigation
- Add a new navigation link
- Set the URL to match your button’s trigger
- Style to match your header
Important Notes
Campaigns Must Be Published
Campaigns Must Be Published
Your campaigns must be live and published in Givebutter before you can embed them as widgets. Draft campaigns will not work.
Widgets Update Automatically
Widgets Update Automatically
Changes made to your campaign in the Givebutter dashboard automatically update in your embedded
widgets—no need to re-embed or update code.
Testing Your Widget
Testing Your Widget
After embedding, test the widget on your live site to ensure: - The widget loads correctly -
Donation forms open properly - Payment methods appear as expected - Mobile display works well
Code Injection vs. Code Blocks
Code Injection vs. Code Blocks
- Code Injection (Header): Use for the library code (site-wide, once)
- Code Blocks: Use for individual widget embed codes (per page, as needed)
Troubleshooting
Widget Doesn't Appear
Widget Doesn't Appear
Check these items:
- Library code is in Code Injection → Header section
- Widget embed code is in a Code block on the page
- Campaign is live and published (not a draft)
- Widget ID is correct (no typos)
- Page changes are saved and published
Widget Appears Cut Off or Overlaps Content
Widget Appears Cut Off or Overlaps Content
Squarespace templates have different content widths. Try: - Adding more space above/below the Code
block - Using a full-width section for the widget - Adjusting your template’s section padding
settings
Floating Widget Appears on Wrong Pages
Floating Widget Appears on Wrong Pages
If a floating widget shows on pages where you don’t want it: - Use the CSS hiding method above for
specific pages - Or place the widget code only on pages where you want it to appear
Payment Methods Missing
Payment Methods Missing
If certain payment methods don’t appear:
- Verify they’re enabled in your Givebutter account settings
- Remember Apple Pay won’t work in embedded widgets
- Check that you’re viewing on a supported device (Venmo is desktop-only)
Next Steps
Widget Examples
See live examples of all widget types
URL Prefill
Pre-fill donation forms with donor information
Analytics
Track widget performance and attribution
Widget Types
Learn about different widget configurations
Need Help?
- Squarespace Support: Contact Squarespace for Code Injection access issues
- Widget Questions: Email [email protected]
- General Help: Visit help.givebutter.com