Docs Home > Dollars Raised

Dollars Raised

Render the Number of dollars raised for a given referral code.


Dollars Raised Widget

Receipts where either the conversion code or the referrer code match will contribute to the total. The referrer code is taken from the page front matter (i.e. dollarsRaisedStat). When calculating totals, the system includes receipts where the reference code or the conversion code matches the refCode.

{% include stats/dollarsRaised %}

dollars raised

$0


Overriding the referrer code

The refCode can also be overridden when the widget is included.

{% include stats/dollarsRaised refCode='wmgives' %}

dollars raised

$56,202


Changing the banner colors

By default, we now use GlobalGiving branded colors. This can be overridden with the backgroundColor paramter. The color can be the hexcode, e.g. #2d95de for very particular shade of blue, or a HTML short name like red.

WARNING: When setting the widget fontColor, this will affect all of the stats widgets on the page. The following example uses an undesirable hack to prevent the color change leaking to the rest of the page.

{% include stats/dollarsRaised backgroundColor='#2d95de' %}
{% include stats/dollarsRaised backgroundColor='red' %}

Changing the banner font color

By default, the text in the banners is white. If you need to change this (e.g. you are using a very light colored background, you can do that with the fontColor parameter. The color can be the hexcode, e.g. #2d95de for very particular shade of blue, or a HTML short name like red.

WARNING: When setting the widget fontColor, this will affect all of the stats widgets on the page. The following example uses an undesirable hack to prevent the color change leaking to the rest of the page.

{% include stats/dollarsRaised fontColor='#2d95de' backgroundColor='pink' %}
{% include stats/dollarsRaised fontColor='red' backgroundColor='pink' %}
WARNING: Javascript is currently disabled or is not available in your browser. GlobalGiving makes extensive use of Javascript and will not function properly with Javascript disabled. Please enable Javascript and refresh this page.