DIY | Library | Functions
Code Snippets for Squarespace Custom Functions
This post is a growing collection of Squarespace custom functions—like smooth scroll, anchor jumps, and more—that you can use to add interactivity and better flow to your site. You’ll find everything tucked into accordion blocks below so you can copy and tweak with ease.
I’ll keep adding new snippets as I come across more during my web design work, so feel free to check back anytime. If you need help applying anything or want to chat through what’s possible, you’re always welcome to email me at sarah@foubography.com.
-
/* smooth scroll */
html {
scroll-behavior: smooth;
}
Related posts
This post is part of the DIY | LIBRARY —a growing collection of practical code snippets designed for Squarespace users who want to take control of their site’s design and functionality. Whether you’re tweaking your navigation, adjusting your mobile menu, or styling buttons, these copy-paste solutions are clean, reliable, and built with SEO and usability in mind. Bookmark this space for easy access to Squarespace custom code that works.