Fundraising Widget

Getting Started

Philantro has two Fundraising tools for nonprofit to use as needed. For this guide, we're solely referencing our Fundraising Widget. Whether you are using a website builder or building from scratch, the technique to add the Fundraising Window to your website is essentially the same.

Campaign ID - A unique ID to reference a Philantro Donation Campaign. You can find all your Campaign IDs under "Manage Campaigns" on your dashboard.

Place this line of code wherever you want your Fundraising Window to appear.
<div class="philantro-progress" data-campaign="Campaign ID">
Online donations provided by <a href="https://wwww.philantro.com">Philantro</a>.
</div>

The Results

Philantro's online fundraising widget is responsive and takes the width of its parent container. Below are two examples of the same widget but with varying widths to showcase the content adjustment. The height of the fundraising widget will automatically adjust proportionally.

Online donations provided by Philantro.
Online donations provided by Philantro.

Fundraising Widget Customizations

You're free to modify the button text and color scheme of the online fundraising widget by using the "data-color" and "data-button" attributes.

Online donations provided by Philantro.
By default, the fundraising widget takes the color scheme of your donation form settings. You may override the color by declaring the HEX code without the "#" symbol.
<div class="philantro-progress"
data-campaign="Campaign ID
data-button="Hello
data-color="cc0000">
Online donations provided by <a href="https://wwww.philantro.com">Philantro</a>.
</div>

Wordpress, Squarespace and Weebly

If you use Wordpress or Weebly, you will need to follow the same steps as adding a donation form to your website but if you have already added Philantro.js to your page, you don't have to add it again. Simply add a new block with the following code snippet.

Philantro.js - If you don't have Philantro.js on your page, follow your respective Website Builder guide via the menu on the left to add it before following this guide.

<div class="philantro-progress" data-campaign="Campaign ID">
Online donations provided by <a href="https://wwww.philantro.com">Philantro</a>.
</div>

Google Sites and Wix

If you use Google Sites, Squarespace or Wix, you will need to follow the same steps as adding a donation form to your website but add the following code snippet instead. You are free to have more than one per page.

<div class="philantro-progress" data-campaign="Campaign ID">
Online donations provided by <a href="https://wwww.philantro.com">Philantro</a>.
</div>
<script>
(function() {
var s = document.createElement('script');
var URI = window.location.href;
var ph = document.getElementsByTagName('script')[0];
s.type = "text/javascript"; s.async = true;
s.src = "<link provided via dashboard>/philantro.js";
window.options = { OID: 'XXXXXXXXX', Referrer: URI};
ph.parentNode.insertBefore(s, ph);
})();
</script>