Greyscale Image Boxes and Recolour on Hover

Greyscale Image Boxes and Recolour on Hover

isSalon
Excursionist
46 0 10

Hi, 

 

I am trying to change these boxes to greyscale and have them re-colour on hover. Screenshot 2025-03-12 at 12.20.33 PM.png

Any help would be greatly appreciated. 

Reply 1 (1)

Moeed
Shopify Partner
7151 1933 2355

Hey @isSalon 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
ul.grid.gap-1.md\:auto-rows-fr.grid-cols-2.md\:grid-cols-4.list-style-none li:hover {
    filter: grayscale(0) !important;
}
ul.grid.gap-1.md\:auto-rows-fr.grid-cols-2.md\:grid-cols-4.list-style-none li {
    filter: grayscale() !important;
}
</style>

RESULT:

Moeed_0-1741809395737.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications