A curated collection of reusable Squarespace code snippets for custom CSS, card grids, responsive layouts, forms, buttons, mobile spacing fixes, and custom code block sections.
These snippets are designed for Squarespace Code Blocks, Custom CSS, and layout refinements where built-in Squarespace blocks need more control.
- Custom Squarespace section layouts
- Responsive card grids
- Form styling snippets
- Button styling patterns
- Mobile spacing fixes
- Custom code block examples
- Layout refinements for service businesses, nonprofits, clinics, and creative brands
A responsive three-card layout that solves uneven spacing, copy alignment, button positioning, and mobile stacking limitations in Squarespace built-in blocks.
View files:
donation-card-grid/index.htmldonation-card-grid/styles.cssdonation-card-grid/README.md
A JavaScript solution for Squarespace 7.1 dropdown folders when parent navigation labels need to redirect users to actual landing pages.
View files:
dropdown-navigation-redirect-fix/script.htmldropdown-navigation-redirect-fix/README.md
A JavaScript and CSS solution that extends Squarespace scroll-reveal animations to custom Code Block elements so they animate consistently with built-in page content.
View files:
code-block-scroll-reveal/script.htmlcode-block-scroll-reveal/styles.csscode-block-scroll-reveal/README.md
A responsive grid that combines compact card styling with table-like row and column organization, solving spacing and alignment limitations for smaller repeated Squarespace content items.
View files:
equipment-card-table-grid/index.htmlequipment-card-table-grid/styles.cssequipment-card-table-grid/README.md
A CSS-only enhancement that adds visible “Previous” and “Next” labels to Squarespace slideshow controls while preserving the built-in arrow icons and applying custom brand colors.
View files:
slideshow-navigation-text-labels/styles.cssslideshow-navigation-text-labels/README.md
A CSS-only navigation enhancement that transforms a selected Squarespace desktop and mobile menu link into a branded CTA button while keeping it within the normal navigation order.
View files:
navigation-link-cta-button/styles.cssnavigation-link-cta-button/README.md
A responsive HTML and CSS marquee that displays clickable publication, press, partner, or client logos in a seamless scrolling strip, extending Squarespace beyond its built-in text-only scrolling options.
View files:
linked-logo-marquee/index.htmllinked-logo-marquee/styles.csslinked-logo-marquee/README.md
A CSS-only solution that restores phone-recorded portrait videos to their original 9:16 display inside the native Squarespace Video Block, avoiding an undersized landscape-style player and unnecessary side bands.
View files:
portrait-video-aspect-ratio-fix/styles.cssportrait-video-aspect-ratio-fix/README.md
A flexible HTML and CSS pill layout that solves Squarespace spacing, wrapping, and alignment limitations when several short content items need to appear as a balanced group.
View files:
responsive-content-pills/index.htmlresponsive-content-pills/styles.cssresponsive-content-pills/README.md
A responsive HTML and CSS pricing layout that solves Squarespace padding, hierarchy, alignment, and equal-height limitations when complex package cards need different visual treatments.
View files:
contrasting-pricing-package-cards/index.htmlcontrasting-pricing-package-cards/styles.csscontrasting-pricing-package-cards/README.md
A responsive HTML and CSS marquee that combines repeated text phrases with logos, icons, or image separators in a seamless loop, extending Squarespace beyond its built-in scrolling text options.
View files:
text-and-logo-marquee/index.htmltext-and-logo-marquee/styles.csstext-and-logo-marquee/README.md
A reusable JSON-LD snippet that describes an embedded Squarespace video with its title, description, thumbnail, upload date, and embed URL.
View files:
video-object-schema/video-schema.htmlvideo-object-schema/README.md
A reusable JSON-LD snippet that describes a book, its author, publisher, language, genres, and landing page for search engines.
View files:
book-schema/book-schema.htmlbook-schema/README.md
A reusable JSON-LD snippet that identifies visible frequently asked questions and their official answers on a Squarespace page.
View files:
faq-page-schema/faq-schema.htmlfaq-page-schema/README.md
These snippets are generalized examples based on common Squarespace website layout needs.
Client-specific content, branding, private URLs, icons, images, and project details have been removed or replaced with reusable placeholder content.
Copy the HTML into a Squarespace Code Block and add the CSS to Custom CSS or inside the page-level code area, depending on the project setup.
Always adjust colors, fonts, spacing, links, and content to match the brand and website structure.