My Favourite Squarespace CSS Hacks — Part 3
It's that time again.
As I gain more experience building websites on Squarespace, I continue to notice small nuances that are sometimes neat, sometimes annoying. Regardless of what it is, I often just want to change some small thing that isn’t possible without custom coding.
There are some byzantine ways to position blocks and images to emulate certain looks within Squarespace, but I always find that it's easier to use CSS to make styling tweaks.
Welcome to part 3 of my custom CSS series. Don't forget to check out part 1 and part 2 of My Favourite Squarespace CSS Hacks.
In this edition, I'll show you how to:
Add gradients to buttons;
Prevent index gallery slide-shows from pausing on hover;
Change your logo colour on different pages. Good for when banner images don't provide enough contrast for your logo to be visible.
Add Gradients to Buttons
As someone who is accustomed to the Squarespace’s design language, I can usually tell when I land on a Squarespace website based on a number of design elements that are tediously similar.
For that reason, I like to customize the standard elements so the sites I build don’t look like everyone else’s.
In my previous CSS hack post: My Favourite Squarespace CSS Hacks — Part 2 I cover sticky headers, back-to-top buttons and horizontal rule styling. This time we’re customizing buttons. Adding a gradient to buttons is a great way to add visual interest and another level of differentiation.
Here’s how to do it:
Add a button block, with the ‘solid’ or ‘raised’ style;
Use UI Gradients, or Colorzilla to generate the custom css. Both of these sites make it super easy to automatically generate gradient CSS;
Add the code you get from UI gradients or Colorzilla to your Custom CSS panel. The following code modifies the medium button block. If you want to modify the small or large button block, replace .sqs-block-button-element--medium with .sqs-block-button-element--small or .sqs-block-button-element--large.
.sqs-block-button .sqs-block-button-element--medium { background: #0A1C1C; background: -webkit-linear-gradient(to top, #07efef, #0A1C1C); background: linear-gradient(to top, #07efef, #0A1C1C); }
Prevent Index Galleries From Pausing on Hover
By default, Squarespace’s index slideshow galleries pause when you hover over them. The problem with this is that if you have a gallery that is 50–100% vertical height, you cursor is always hovering over the gallery which means it never advances the the next slide. Paste the following code into your Custom CSS panel to cancel pointer events except for gallery controls and links:
.Index-gallery { pointer-events:none; } .Index-gallery a, .Index-gallery-control, .Index-gallery-indicators { pointer-events:auto; }
Invert Your Logo on Different Pages
Sometimes you need to have a black logo, sometimes you need a white logo.
When you have a banner image that doesn’t provide sufficient contrast to make your logo visible, you can use the following code in a page’s header code injection area to invert the colour of the logo you’ve uploaded:
<style> .Header-branding-logo { filter: invert(100%); } </style>
NOTE: .Header-branding-logo” may differ based on the template you use. This code works in the Brine family of temples. Leave a comment below if you need help with customizing your logo.
If you're looking to customize your Squarespace website even more, check out the code shop for unique modifications that are sure to set you apart from your competition!
Related Articles:
Learn how to turn the inset border on a Squarespace section into a blurred image frame using just 6 lines of custom CSS. Step-by-step tutorial with a code generator.
Create a vertical scrolling testimonial carousel to any Squarespace site. Includes a live code generator where you can type in your own reviews, customize colors, speed, and card styles, and copy the finished code in one click.
Uploaded a video to Squarespace but can't find a way to download it back? Here's a quick workaround to retrieve your hosted video files when the download button is missing.
Learn how to add quizes, polls, and surveys to your Squarespace website without code using Opinion Stage. A free tool to turn quizes and polls into lead generators.
Create anchor links in Squarespace 7.1 without coding! Learn to make smooth scrolling internal links for same-page navigation, links to other pages, and SEO-friendly anchor links. Get solutions for unsupported sections too.
A complete guide to the 2026 Squarespace Circle program changes, including how to qualify for Gold and Platinum status, earn points, and unlock exclusive discounts.
Create a typewriter effect header with a blinking cursor on your Squarespace site using one simple code block.
Add a 'View Project' button overlay to your Squarespace portfolio thumbnails. This code snippet is an easy plug-and-play solution to enhance your Squarespace website design.
Learn how to write original content as a Squarespace designer without relying on AI-generated templates. This guide covers a five-step process for creating blog posts that keep your unique voice while using AI as a helpful tool.
Add a collapsible floating side navigation menu to your Squarespace site with this code snippet. Keep links accessible without clutter, customize icons and colors, while being fully responsive. Follow the step-by-step guide to integrate it seamlessly.
Learn how to customize the default 'Sign up for News and Updates' text in Squarespace forms with a simple JavaScript snippet. This quick guide will help you align your forms with your brand’s tone and messaging, boosting engagement and maintaining consistency.
Discover Generative Engine Optimization (GEO) and learn how to rank in AI-generated search results from tools like ChatGPT and Google Gemini. Build a strong SEO foundation, optimize for informational queries, and adapt to AI-driven search behavior for future-proof visibility.
Learn how to reposition your Squarespace header to the bottom of the page using a simple CSS code snippet.
In this tutorial I will teach you how to add a polaroid photo effect to the Squarespace Instagram block.
In this tutorial I will teach you how to change images on hover in Squarespace Fluid Engine and 7.1 using a very simple CSS code.
In this article I will guide you through the process of implementing the Ken Burns effect on your Squarespace images, galleries, and section banners using CSS.
When a member logs into their Member Area account, the page simply refreshes and the user panel opens. This can be confusing and not the best user experience. In today's article, I'll show you how to solve this problem by sharing a simple code snippet that you can add to your website
In today's digital landscape, websites must be designed with responsiveness in mind. As a Squarespace designer, one of the most important steps in my web design process is ensuring my websites are responsive and look amazing on all displays, be it mobile, tablet, or desktop.
If you’re a business owner or a freelancer, you know that it can be stressful enough having an unstable and variable income. The last thing you want to worry about is clients that ghost you after your work is done. Your livelihood depends entirely on invoices paid on time by your clients. Unfortunately, that doesn’t always happen. Since starting my web design business, I have not encountered this problem once. Here are some tips to prevent late and non-payments
If you're a fan of Squarespace like I am, you'll know that 2022 was a banner year for the platform. They completely revamped their website builder with the "Fluid Engine" layout editor and let me tell you - it was a game changer. Building websites on Squarespace just got a whole lot easier and more stylish. But that's not all - they also rolled out a ton of new features that made it possible to create professional-grade websites without any coding skills. These updates were a total dream for anyone who loves to tinker with their website and try out the latest design trends. In this article, I'll be sharing all the details about these new features and giving you my honest thoughts on them.
Adding floating social icons that are always visible to your website is an easy way to encourage visitors to follow you on your chosen platforms and stay up to date with your content. Not only do these icons provide an easy way for visitors to connect with you, but they also contribute to the professional and cohesive look of your site. The new Fluid Engine update to Squarespace means the codes we used on 7.1 to achieve this are no longer viable and they need some tweaking.
In the web design business, like any tech-related business, technologies and trends move & change at an impossibly rapid rate. You’ve probably noticed many of these trends emerging already. If not, you’re going to notice them after reading this article.
Squarespace has just released a new feature that I've been wanting for a while: Saved Sections. In this post, I'll give you an overview of what Saved Sections are, how to use them, and how they can improve your Squarespace workflow.
In this article, I’ll show you how to create an anchor link sidebar navigation in Squarespace 7.1 and Fluid Engine.
In this article, I’ll show you how you can force the mobile navigation to show all the time, even when viewing on desktop browsers in Squarespace 7.1.
Like many, I left high-school with the task (read: burden) of deciding, that very minute, what it was that I was going to do for the rest of my life to make some semblance of a living in this tremendously costly city I call home. What do I want to be when I grow up? In western society, what that really means is: Which profession will define me a person, and how many expensive and unnecessary things do I want to buy to impress people I don’t like?
The Brine family of templates in Squarespace 7.0 offered a lovely, optional parallax feature that could be applied to banner images. 7.1 does not currently offer this option. However, with a little bit of code, we can add a (more flexible) version of the parallax effect to banner images in this updated design system.
Logos are essential for the branding of your company, and can also have an effect on the overall design of your site. This can certainly be an intimidating process if you have never designed a logo before, but it doesn’t have to be.
A complete guide to Squarespace’s 2025 pricing—Basic, Core, Plus, and Advanced. Use our free plan selector to quickly find the perfect tier for your site.