How To Embed Your Campaign Badge

To embed your campaign widget on your website, simply follow these steps:

  1. Go to your campaign page (example: https://fundrazr.com/campaigns/bMmtb)

  2. In the row of sharing options under the campaign picture, click Embed (see Screenshot 1 below for where to look onscreen)

  3. Select a style and width for your widget (see Screenshot 2). Note: The Tall and Wide badges will allow you to select a custom width so the widget is easy to fit on your website

  4. Click Get Code (see Screenshot 2)

  5. Copy & paste both snippets of code into the source code for your website (see Important note below)

  6. Click "Close" and you're done!

Important things to remember:
 
  • Loader script: This is the Javascript needed to enable to the widget. This snippet can be placed anywhere on the page, but works best in the Header or Footer. 

    Note:  If you use Wordpress.com or a similar Content Management System to host or build your website, these widgets may not work for you, because Wordpress and some other Content Management Systems tend to strip Javascript from the source code before loading the page for a visitor.

    The following page on wordpress.org may help you overcome the Wordpress limitation (http://codex.wordpress.org/Using_Javascript), but keep in mind that you'll need to have advanced HTML knowledge to implement this workaround, and FundRazr can't guarantee this will work. We also can't help you implement this solution into your Wordpress site because we don't have access inside Wordpress's system, so if you need help with this workaround you'll need to contact Wordpress directly for help.
     
  • Widget code: This is the code for the widget itself. This snippet needs to be placed where you want the widget to appear on the page. 

    Note:  If you have more than one FundRazr campaign running at the same time, you can place them all on one web page. To do this, you only need to add the loader script to the page once, then for each additional campaign, you only need to change the 5 digit code for your campaign, as shown in bold here:

    data-url="http://fnd.us/c/bMmtb

Screenshot 1:
How_To_Embed_Your_Campaign_Badge_1.png
 

Screenshot 2:

How_To_Embed_Your_Campaign_Badge_2.png
 
 

Screenshot 3:

How_To_Embed_Your_Campaign_Badge_3.png
 

Want to embed your full campaign on a page of your website instead of just a widget/badge? No problem!

 
Just follow the same steps as above, then continue here:
  • The loader code will stay the same, so don't change anything there.
  • The widget code is where you'll need to make changes. 
  • YOU WILL NEED TO UNDERSTAND HTML CODE TO MAKE THESE CHANGES SUCCESSFULLY. If you aren't sure what to do here, forward this page to your website administrator.

You'll need to change certain variants inside the widget code.

data-type="badge" - The TYPE should be changed to full-campaign: 
data-type="full-campaign"

data-width="200" -  The WIDTH is variable, so whatever width you see in this section after grabbing the standard code should be changed to 1080:
data-width="1080"

data-url="http://fnd.us/c/bMmtb-  The URL included in the standard code is the FundRazr Short URL. For full page campaigns, this needs to be the full URL of the campaign:
data-url="https://fundrazr.com/campaigns/bMmtb"

data-variant="tall" - The variant needs to be removed.


Here's a Before & After example:

Before:
class="fr-widget" data-type="badge" data-variant="tall" data-width="200" data-url="http://fnd.us/c/bMmtb"

After:
class="fr-widget" data-type="full-campaign" data-url="https://fundrazr.com/campaigns/bMmtb" data-width="1080"



*This page is provided as a guide only. If you don't understand how to add HTML code to your website, do not attempt this yourself or you could break your website. Please have your website designer/administrator add the code for you. 

Have more questions? Submit a request

Comments

Article is closed for comments.