Skip to main content

Use Web Widgets with Squarespace

Follow this guide to embed and test your widget successfully on a Squarespace site.

Cristina Gruita avatar
Written by Cristina Gruita
Updated yesterday

Add the Widget to Squarespace

  1. Generate your Web Widget in Donorfy as normal.

  2. Open your Squarespace page editor.

  3. Insert a Code Block where you want the widget to appear.

  4. Paste your Web Widget HTML into the code block.


Add Required Script References

Squarespace does not automatically include the jQuery libraries required by Donorfy Web Widgets.

To enable the widget to initialise correctly, add the following script references above your widget HTML inside the Code Block:

<script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.12.4.min.js"></script> <script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.13.1/jquery.validate.min.js"></script>

These must appear before any widget code.


Use Your Own Domain When Testing

Squarespace may provide a temporary domain such as:

https://mycharity.squarespace.com

This domain may not allow payment processes (e.g. Stripe or Apple Pay) to complete properly.

To ensure accurate testing:

  1. Connect your organisation’s real domain (e.g. https://www.mycharity.org) to Squarespace.

  2. Test your Web Widget using this live domain.

This ensures compatibility with Stripe validation, Apple Pay requirements, and SSL behaviour.
To get the appearance of the web widget exactly as you want it you can add your own CSS - this article explains more.

⚠️Important:
Web Widgets are a Professional only feature. Essential subscribers, please contact us to find out more about upgrading.

Did this answer your question?