How to Change the “Sign up for News and Updates” Text in Squarespace Contact Forms
Adding minimal customizations to your Squarespace website can make a world of a difference. In this guide, I’ll show you how to use a simple JavaScript snippet to change the default "Sign up for News and Updates" text on Squarespace forms to something more tailored for your brand. This code is designed to work with Squarespace's built-in form functionality.
How to add this code to your Squarespace Website
Open Code Injection
Go to Website > Pages > Website Tools > Code Injection.
Paste the Code
Copy the script below and paste it into the Header Injection section.Customize the Label
Replace
[REPLACE WITH YOUR TEXT]
with your desired phrase (e.g., "Subscribe for weekly tips").
Save Changes
Click Save in the Code Injection panel and you should see your custom text on your contact forms!
<script>
document.addEventListener("DOMContentLoaded", function() {
function updateCheckboxText() {
const targetSpan = Array.from(document.querySelectorAll('span[data-dynamic-strings="true"]'))
.find(span => span.textContent.trim() === "Sign up for news and updates");
if (targetSpan) {
targetSpan.textContent = "[REPLACE WITH YOUR TEXT]"; // Custom label
} else {
setTimeout(updateCheckboxText, 100);
}
}
updateCheckboxText();
});
</script>
Why Customize the Text in Squarespace Forms?
Maintain Branding Consistency
Replace the default Squarespace form text with something that reflects your brand’s tone and messaging.Expand your Mailing List
Tailor the form text to better align with what users are signing up for, making it more inviting and relevant.
How the Code Works
Targets the checkbox label using its default text.
Replaces the text after the page loads.
Retries automatically if the element isn’t immediately available.
Final Thoughts
This adjustment is frequently requested by clients who want forms to reflect specific compliance needs or branding. Squarespace designers can extend this method to edit other form elements, creating cohesive user experiences without plugins.

Need help implementing this code on your website?
Looking for a custom Squarespace solution or need assistance tweaking this code? Minimist specializes in modern web design and Squarespace coding to fit your needs. Whether it’s styling adjustments, added functionality, or a fully custom site, I can help.
Book a Free Consultation