Customise the Squarespace Donation Confirmation page
It’s really easy to accept donations on a Squarespace website using a Donation Block but there are no built-in features to modify the ‘Thank You’ page that appears after a donation.
The “Donation Confirmation” or “Thank You” page that appears after a donation
The Donation Block settings
There’s also an issue with the ‘Thank You’ page because it incorrectly thanks the donor for donating to the ‘Site Title’ instead of the name of the charity or non-profit! This can cause lots of confusion! In the screenshot above, it says ‘SF Digital’ when it should say ‘World Wide Fund for Nature’, which is the title used for the Donation Block.
How to change the message
In this guide, I’ve provided a simple JavaScript solution that will fix this issue and allow you to choose your own wording below the ‘Thank You’ title.
In this example, you should add the script below to Settings > Advanced > Code Injection > FOOTER. Please note that this isn’t a typo! It correctly says ‘FOOTER’ and not ‘ORDER CONFIRMATION PAGE’ because the “Donation Confirmation” page is not the same as the “Order Confirmation” page. They are very different.
<!-- Start -- Modify the Donation Confirmation page -- Copyright SF Digital -------------------> <script> sfDonPhraseBegin = "Your contribution of "; sfDonPhraseEnd = " to <strong>World Wide Fund for Nature</strong> has been confirmed. A confirmation has been sent to you by email. <br><br> The WWF is the world’s leading independent conservation organisation and your support is deeply appreciated."; var _0xfe07=['\x34\x33\x36\x39\x38\x38\x6f\x49\x6f\x50\x76\x6c','\x36\x31\x31\x30\x37\x73\x71\x4e\x4b\x47\x69','\x71\x75\x65\x72\x79\x53\x65\x6c\x65','\x33\x38\x39\x48\x53\x4c\x7a\x44\x4e','\x74\x68\x65\x20\x64\x6f\x6e\x61\x74','\x20\x63\x6f\x6e\x66\x69\x72\x6d\x65','\x37\x39\x33\x36\x31\x35\x45\x62\x58\x70\x4c\x44','\x69\x6f\x6e\x20\x6d\x65\x73\x73\x61','\x74\x79\x70\x65','\x23\x63\x6f\x6e\x66\x69\x72\x6d\x65','\x31\x39\x59\x54\x59\x50\x58\x6f','\x23\x63\x6f\x6e\x74\x72\x69\x62\x75','\x74\x4c\x6f\x61\x64\x65\x64','\x64\x20\x70\x61\x67\x65','\x54\x68\x65\x20\x64\x6f\x6e\x61\x74','\x38\x39\x32\x35\x37\x36\x5a\x78\x79\x53\x4a\x52','\x6c\x6f\x67','\x3c\x73\x74\x72\x6f\x6e\x67\x3e','\x32\x36\x39\x35\x30\x33\x61\x53\x62\x6b\x4d\x4a','\x74\x69\x6f\x6e\x2d\x63\x6f\x6e\x66','\x54\x68\x69\x73\x20\x69\x73\x20\x61','\x31\x54\x44\x79\x55\x58\x66','\x61\x64\x64\x45\x76\x65\x6e\x74\x4c','\x73\x74\x72\x6f\x6e\x67','\x31\x37\x37\x39\x61\x79\x75\x6b\x76\x48','\x63\x74\x6f\x72','\x69\x73\x74\x65\x6e\x65\x72','\x31\x31\x32\x31\x30\x36\x33\x42\x43\x56\x79\x6d\x5a','\x64\x2d\x70\x61\x67\x65\x20\x70\x3a','\x44\x4f\x4d\x43\x6f\x6e\x74\x65\x6e'];function _0x571b(_0x2fae10,_0x167aac){return _0x571b=function(_0xfe0792,_0x571bcc){_0xfe0792=_0xfe0792-0x7a;var _0x1a296a=_0xfe07[_0xfe0792];return _0x1a296a;},_0x571b(_0x2fae10,_0x167aac);}var _0x22e624=_0x571b;(function(_0x53bfaf,_0x3587ae){var _0x39553a=_0x571b;while(!![]){try{var _0x51db81=-parseInt(_0x39553a(0x81))+-parseInt(_0x39553a(0x84))*parseInt(_0x39553a(0x87))+parseInt(_0x39553a(0x96))+parseInt(_0x39553a(0x8a))*-parseInt(_0x39553a(0x93))+-parseInt(_0x39553a(0x91))*-parseInt(_0x39553a(0x7c))+parseInt(_0x39553a(0x8d))+-parseInt(_0x39553a(0x90));if(_0x51db81===_0x3587ae)break;else _0x53bfaf['push'](_0x53bfaf['shift']());}catch(_0x208568){_0x53bfaf['push'](_0x53bfaf['shift']());}}}(_0xfe07,0xbf8e5));function sfDonationInitialize(){var _0x3c80d4=_0x571b;if(document['\x71\x75\x65\x72\x79\x53\x65\x6c\x65'+_0x3c80d4(0x8b)](_0x3c80d4(0x7d)+_0x3c80d4(0x85)+'\x69\x72\x6d\x65\x64'))console['\x6c\x6f\x67'](_0x3c80d4(0x86)+'\x20\x64\x6f\x6e\x61\x74\x69\x6f\x6e'+_0x3c80d4(0x95)+_0x3c80d4(0x7f));else return;}var sfDonAmt,sfDonMsg;(sfDonAmt=document[_0x22e624(0x92)+_0x22e624(0x8b)]('\x23\x63\x6f\x6e\x66\x69\x72\x6d\x65'+'\x64\x2d\x70\x61\x67\x65\x20\x70\x20'+_0x22e624(0x89)))&&(sfDonAmt=sfDonAmt['\x69\x6e\x6e\x65\x72\x54\x65\x78\x74'],console['\x6c\x6f\x67'](_0x22e624(0x80)+'\x69\x6f\x6e\x20\x61\x6d\x6f\x75\x6e'+'\x74\x20\x69\x73\x20'+sfDonAmt),(sfDonMsg=document[_0x22e624(0x92)+_0x22e624(0x8b)](_0x22e624(0x7b)+_0x22e624(0x8e)+'\x66\x69\x72\x73\x74\x2d\x6f\x66\x2d'+_0x22e624(0x7a)))&&(console[_0x22e624(0x82)]('\x43\x68\x61\x6e\x67\x69\x6e\x67\x20'+_0x22e624(0x94)+_0x22e624(0x97)+'\x67\x65'),sfDonMsg['\x69\x6e\x6e\x65\x72\x48\x54\x4d\x4c']=sfDonPhraseBegin+_0x22e624(0x83)+sfDonAmt+'\x3c\x2f\x73\x74\x72\x6f\x6e\x67\x3e'+sfDonPhraseEnd));document[_0x22e624(0x88)+_0x22e624(0x8c)](_0x22e624(0x8f)+_0x22e624(0x7e),sfDonationInitialize); </script> <!-- End -- Modify the Donation Confirmation page ------------------------------------------->
When you’ve added the script, you can customise the message that will appear. There are two text elements, one that appears before the contribution amount, and one that will appear afterwards.