Updating Your Theme to NationBuilder Donation V2

If you purchased one of our premium themes before NationBuilder released the Donation V2 page type in mid-2018, use this guide to update your theme.

File Download

Clicking the button below will download a zip folder. Before uploading the files to your theme, make sure you've "unzipped" the folder so you can upload the two individual files.

Download Files


Code Block for _nm-theme.scss

@import "nm-partial-donation-v2";

Code Blocks for layout.html

{% if page.type_slug == "endorsement" or page.type_slug == "volunteer_signup" or page.type_slug == "event" or page.type_slug == "calendar" or page.type_slug == "feedback" or page.type_slug == "petition" or page.type_slug == "vote_pledge" or page.type_slug == "recruiting" or page.type_slug == "signup" or page.type_slug == "survey" or page.type_slug =="suggestion_box" or page.type_slug == "moneybomb" or page.type_slug == "donation" or page.type_slug == "donation_v2" %}
    {% assign action_page = true %}
    {% if page.type_slug != "event" and page.type_slug != "suggestion_box" and page.type_slug != "calendar" and page.type_slug != "recruiting" and page.type_slug != "donation_v2" %}
        {% assign full_bg_page = true %}
    {% else %}
        {% assign full_bg_page = false %}
    {% endif %}
{% else %}
    {% assign action_page = false %}
    {% assign full_bg_page = false %}
{% endif %}


{% if page.type_slug == "donation" %}
<script type="text/javascript" src="staged-donations.js"></script>
{% elsif page.type_slug == "donation_v2" %}
<script type="text/javascript" src="staged-donations-v2.js"></script>
{% endif %}

Get In Touch

We are located in Austin, TX (Central Time).