Adding Donation Buttons, Badges and Banners
You can showcase your Collective contributors and invite donations by displaying buttons and information from your profile to your own website.
There are a number of ways to display your Collective information on your own site, including buttons and banners.
Accessing widgets and badges from your settings
A selection of badges and widgets are available for you to edit and customize from the “Export” section of your Collective’s “Settings” menu.
You can find:
a script to add a banner widget for your Collective to your site
a script to export images showing your contributors in each of your tiers
Adding donate buttons
To place a donate button on your website, add this script:
Replace YOURCOLLECTIVE
with the handle you selected for your collective URL.
You will also need to replace VERB
with the action you want to invite your reader to complete (for example, use “donate” if you want the button to say “Donate to our Collective” or “contribute” if you want it to say “Contribute to our Collective”.
To add your donate button to a blog post, use this script to load an image of the logo with a link to your collective’s “contribute” page.
For example:
Displaying supporters and sponsors
Showing a list of sponsors can be a good way to recognize those who have supported you. To do this, add this script:
Remember to replace YOURCOLLECTIVE
with your Collective’s handle
You can also style how your display looks by using this script template (in React style). If you alter this example script, remember that your version must still be parsable with JSON.stringify.
This script will use the default h1
and h2
tags that you have set on your website, but you can edit them with a command such as the one below:
Creating a contributor badge
You can create a badge in an SVG format showing the number of financial contributors to your Collective. You can adapt the script to change the label and color:
Creating a contributor image
You can also create an SVG image showing all the profile icons of your financial contributors.
Here is an example code that you can adapt to suit your needs:
You can edit the script based on a range of parameters:
Parameter
Description
default
width
width of the image
height
height of the image
limit
max number of members to show
(unlimited)
avatarHeight
max height of each avatar / logo
button
show "become a backer/sponsor" button
true
format
format of the image (replace .svg with .png or .jpg)
Last updated
Was this helpful?