Docs Home > Top Projects

Top Projects

Shows the projects funded by this referrer code


Show project/country stats for a referrer code

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. topProjectsStat).

{% include stats/topProjects %}

total projects funded

0

top projects funded

top countries funded


Overriding the refCode

With the optional referrer code set to wmgives.

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

total projects funded

243

top projects funded

  1. Saving Children in Poverty Worldwide
  2. Puerto Rico & Caribbean Hurricane Relief Fund
  3. California Wildfire Relief Fund
  4. Shelter for child survivors of abuse in Malaysia
  5. Replanting Rainforest in Sumatra, Indonesia

top countries funded

  • United States
    $17,465
  • Puerto Rico
    $4,450
  • Malaysia
    $3,145
  • Indonesia
    $2,879
  • Philippines
    $2,555

Limiting the number of projects/countries

Previous examples were quietly setting the listLimit to 5. By default however, this widget will render all projects/countries related to the referrer code. The default behavior is not always desirable for long-lived/popular referrer codes as the list can becomes unwieldy. This can be limited via the listLimit parameter. The limit is applied to both the projects listed and the countries represented.

{% include stats/topProjects listLimit='20' refCode='wmgives' %}

Limit the numbers of days to consider for stats

By default, this will search back to the beginning of time. Adding the lookbackDays will limit the search to the last lookbackDays number of days.

{% include stats/topProjects lookbackDays='2' listLimit='5' refCode='https://www.google.com/' %}

In the last 2 days...

total projects funded

79

top projects funded

  1. Improve Vision Health for 1,000 Guatemalans
  2. GIFT OF SACRIFICE EID ADHA 2018 FOR POOR PEOPLE
  3. Drinking Water for 40 Villages of Thar Pakistan
  4. Plant 30,000 native trees Costa Rican owned farms
  5. Education before work

top countries funded

  • Pakistan
    $1,835
  • India
    $1,112
  • Guatemala
    $860
  • Mexico
    $507
  • Costa Rica
    $500

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/topProjects backgroundColor='#2d95de' %}
{% include stats/topProjects 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/topProjects fontColor='#2d95de' backgroundColor='pink' %}
{% include stats/topProjects 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.