Hi there!
I’m would like my product placeholder images to be greyscale, and then turn colour on hover (leading to full colour image in item page).
Could anyone help me with this? I’m using Debut theme!
Many thanks,
Joe
A Debut theme user wants product images to display in greyscale and transition to color on hover.
Solution Provided:
Multiple developers offered CSS code snippets to achieve this effect:
theme.scss.css file via Shopify Admin → Online Store → Themes → Edit code.grid-view-item__image and related classesImplementation Steps:
Additional Request:
The user also asked about replacing the search field’s magnifying glass icon with a custom image. A developer confirmed this is possible by:
The original issue was resolved successfully, with the secondary request requiring further collaboration via email.
Hi there!
I’m would like my product placeholder images to be greyscale, and then turn colour on hover (leading to full colour image in item page).
Could anyone help me with this? I’m using Debut theme!
Many thanks,
Joe
Hello There,
Please share your store URL and password.
So that I will check and let you know the exact solution here.
@JG123 can you please share your webpage link?
Thanks!
Thanks!
@JG123
please add this css to the very end of your theme.scss.css file and check,
Shopify Admin → Online Store ->Theme → Edit code → theme.scss.css
a:hover, a:focus {opacity: 1;}
.grid-view-item__image-wrapper .grid-view-item__image {opacity: 1; filter: grayscale(1);}
.grid-view-item__image-wrapper .grid-view-item__image:hover{filter: none;}
@JG123 Hello! Please follow these steps to add this CSS code:
.grid-view-item__image, .grid-view-item--sold-out .grid-view-item__image {
opacity: 1;
filter: grayscale(1);
}
a.grid-view-item__link.grid-view-item__image-container:hover .grid-view-item__image,
a.grid-view-item__link.grid-view-item__image-container:hover {
opacity: 1;
filter: grayscale(0);
}
Feel free to reach out if you have any questions or need assistance.
Best Regards,
DWS.
Perfect, thanks so much for your help!
While I’ve got you here - may I ask another question? I would like to swap out the magnifying glass icon for the search field with another small image - could that be possible?
Thanks again in any case ![]()
@JG123 - yes it is possible, need to get svg file of the required icon and then we can replace the icon code with this new svg file code
Thank you! How can I share with you my svg file?
@JG123 - you can email me if you want , to make changes needs theme code access… do you know coding?
I know very little to be honest, but I can give it a shot! I’ll email you now - thanks again!