Age Gate Squarespace ((hot)) Guide
In Squarespace, go to > Developer Tools > Code Injection . Paste the script into the Header section. 4. The Custom Route: Code Injection (Advanced)
<!-- Paste this HTML into a Code Block on the page OR just after the <body> tag via Code Injection --> <!-- Note: This HTML needs to exist on the page for the script to work. Ideally, inject this via Code Injection > Header so it loads first. --> <div id="age-gate"> <h2>You must be 18+ to enter</h2> <p>Are you of legal age?</p> <button id="enter-btn">Yes, Enter</button> </div> age gate squarespace
Squarespace does not offer a native, built-in age verification module. Unlike Shopify or WooCommerce, the platform’s architecture restricts server-side scripting, making traditional "Age Gates" (pop-ups that block screen access) difficult. To comply with legal requirements (e.g., for alcohol or tobacco products), users must rely on , third-party scripts , or Squarespace’s built-in password protection . In Squarespace, go to > Developer Tools > Code Injection
Here are the three best ways to handle this, depending on your technical comfort level: The Custom Route: Code Injection (Advanced) <