Install the Kindful Donation Plugin on Squarespace

Kindful's Donation Plugin is the easiest way to accept donations anywhere - and to have those donations automatically flow into your Kindful account.

Instructions to add the Donation Plugin to your Squarespace website follow.


 Easy Instructions:

Embed the Donation Plugin’s Button inside page content:

  1. Go to your Squarespace site editor, find or create the donation page onto which you want to embed the donation form, and click “Edit” on the page’s main content box.
  2. Click on the teardrop shaped buttons present inside the text box to open up the list of content blocks.
  3. Scroll down and find “Code” under the “More” section.
  4. Paste the embed code in the code box and click “Apply”.

 

 


Advanced Options:

Don’t want to use the button from Kindful?

How to set the plugin to launch from an existing button or link (that has an ID you can reference):

  1. Open Inspector Tools in browser
  2. Find the button you want and find it’s id (ie: #yui_23783923728357235)
  3. Modify embed code to include:
    1. <script src='https://kindful.com/embeds/F356FB7D9DFC4027AA7A683A3251177E/init.js' data-embed-id='f356fb7d-9dfc-4027-aa7a-683a3251177e' data-lookup-type='jquery-selector' data-lookup-value='#yui_23783923728357235' data-styles-off=”true”></script>
    2. data-styles-off=”true” will allow user to use the styles on the page, instead of the donation button css created by the plugin editor)

 

How to set the plugin to launch from an existing button or link (that does NOT have an ID you can reference):

  1. Open Inspector Tools
  2. Right click link tag and find copy > xpath
  3. Sample copied code: //*[@id="mainNavigation"]/div[1]/a
  4. Format embed code with xpath data (least preferred for Squarespace): <script src='https://kindful.com/embeds/F356FBSDD027AA7A683A3251177E/init.js' data-embed-id='f356fb7d-9dfc-4027-aa7a-683a3251177e' data-lookup-type='xpath' data-lookup-value='//*[@id="mainNavigation"]/div[1]/a'></script>
  5. Navigate to Settings > Advanced > Code Injection because you want it on every page of the site.
  6. Paste in the script tag (it will now be executed on every page, just like the nav)
    • Note: If you make changes to your site structure this could mess up which link is going to be active.
  7. Using the page editor, create a code block on the page and paste in the embed script.
  • Note: some buttons won’t have an id, so you’ll have to reference the block that the button is in when setting the “data-lookup-value” on the embed code script tag. Ie: “#button_wrapper_id a”
  • Note: if you turn the styles off, this gives you flexibility to apply the script to multiple elements on the site

 


How to Find Developer Tools in your Browser:

As well as a menu shortcut, you can access the Developer Tools easily either pressing "F12" in Windows or "Cmd" ⌘, "Option" ⌥ and "I" on the Mac, or by right clicking on the page and selecting “Inspect Element”.

In Safari, you will need to enable the Developer Tools by checking the option in Preferences > Advanced > Show Develop Menu first.

In Opera, you will need to enable Developer Tools by checking the option in More Tools > Enable developer tools.

Since Firebug is an extension for Firefox, you will need to install the add on from http://getfirebug.com/”

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments