How to add or remove an Image Filter on Hover on Squarespace

In this tutorial, you will learn how to effortlessly add or remove an image filter on hover for your Squarespace website. Image filters are an excellent tool for aligning your photos with your brand's theme and injecting a sense of dynamism into your website. By following the steps outlined in this tutorial, you'll be able to enhance the visual appeal of your Squarespace site by implementing captivating image filters that bring cohesiveness to your brand and add an element of visual interest to your photos.

Complexity: Easy

To add or remove an Image Filter on Hover, simply copy the code below:

Sets the add or remove an Image Filter on Hover Site Wide

// add or remove an Image Filter on Hover//
.sqs-block-image {
 -webkit-filter: grayscale(100%);
 filter: grayscale(100%);}

.sqs-block-image:hover {
 -webkit-filter: none !important;
 filter: none !important;}

From your Squarespace account, go to the Custom CSS Editor. paste the code into the Custom CSS editor box. This code will work site wide

If you wish to add or remove an Image Filter on Hover a particular page, you will need to view the page source by simply right mouse click and click on the 'View page Source' option. Look for the body tag which would look something like this: <body id=”collection-5f0748fced03a8025828eee7 (see image below).

How_to_hide_the_Header_and_Footer_on_Squarespace_7_1--body.png

Copy the ID (collection-5f0748fced03a8025828eee7).

// add or remove an Image Filter on Hover //
#collection-5f0748fced03a8025828eee7{
.sqs-block-image {
 -webkit-filter: grayscale(100%);
 filter: grayscale(100%);}

.sqs-block-image:hover {
 -webkit-filter: none !important;
 filter: none !important;}
}

From your Squarespace account, go to the Custom CSS Editor. paste the code into the Custom CSS editor box.

 
Primitus Consultancy

We work with small and medium-sized businesses to help create a professional online presence. We provide a one shop full-service design studio in London, United Kingdom. 

https://primitusconsultancy.co.uk
Previous
Previous

How to optimise your Squarespace website 7.1 for mobile screens

Next
Next

How to change mobile menu hamburger Colour on Squarespace 7.1