Embedding a Donately donation form into a Squarespace site
How to put a Donately donation form on a Squarespace site with a Code Block, which Squarespace plans run it, and why the form is hidden while you are logged in.
Squarespace's Code Block puts your Donately form directly into your page, so every payment method works there, including Apple Pay and Google Pay. Embedding works on every Donately plan, including Free.
Squarespace needs its Core plan or higher (Business, on older plans) to run the code. On the Basic plan (Personal, on older plans) the block keeps your code but does not run it, so visitors see nothing. Watch for this after a free trial: the form works during the trial and disappears if the site moves to Basic. If your plan does not run code, you can still link to your form, as described at the end of this page.
The form is hidden while you are logged in. Squarespace disables embedded scripts while you are editing, and shows a "Script Disabled" box in place of the form. That is expected, not a sign that something is wrong. To see the form, log out or open your site in a private browser window.
1. Copy your embed code from Donately
- Build your donation form and publish it. The Share button stays disabled until the form is published.
- Open the form and click Share.
- Under Embed on Your Website, choose Simple script, then click Copy Embed Code.
Simple script is the right choice for Squarespace. Put your donation form on your website explains the other two options if you need them.
2. Add a Code Block in Squarespace
- Open the page where the form should go and click Edit. Many organizations give it its own "Donate" page.
- Hover over the section where you want the form, click Add Block, and choose Code. On an older-style section, click the + instead.
- Click the block, then its pencil icon to open the code editor.
- Check that Mode is set to HTML and Display Source is turned off. In any other mode, or with Display Source on, the code shows up as text instead of running.
- Paste the code you copied in step 1, then save the page.
3. Check the live page
Log out of Squarespace, or open your site in a private browser window, and go to the page. The form appears where you placed the Code Block.
Squarespace's Preview in safe mode button is not a reliable test. It runs the code in a restricted frame where some features, including Apple Pay and Google Pay, cannot work.
The block's size in the editor is only a placeholder, because the real form is not drawn there. Check the live page on a phone as well as a computer: Squarespace arranges the mobile layout separately, so the form may need a little room adjusted around it.
You do not need to repeat any of this when you edit the form later. Publish your changes in Donately and the embedded form picks them up within a minute or two. If it still looks old, hard-refresh the page.
Apple Pay and Google Pay
Because the Code Block puts the form directly into your page rather than inside a separate frame, mobile wallets work on Squarespace. There is one step on the Donately side: register your site's domain under Settings → Payment Processors, or use the task Donately adds to your dashboard after your first donation from the site. Accept Apple Pay and Google Pay on your donation forms walks through it.
Register the domain donors see in their address bar, such as www.example.org. If you test on your built-in squarespace.com address, that counts as a separate domain.
Styling the form
Because the form sits directly in your page, it can pick up some of your Squarespace site's styles. Set the donate button and accent color with Primary color in the form builder, and use Custom CSS for anything else. Change how your donation form looks covers both.
On the Basic plan? Link to your form instead
Every form has a Hosted Form Link: a complete donation page that Donately hosts for you. Copy it from the form's Share page, then add a Button block to your Squarespace page (or a link in your navigation) that points at it.
It works on every Squarespace plan, and Apple Pay and Google Pay work there with no setup. An iframe embed is not a workaround on Basic, because Squarespace blocks those on that plan too.