Nova Posted February 19 Posted February 19 I have this code put on in my custom css, which makes my header nav and title turn from white to black on hover. #header:hover a, #header:hover img, #header:hover svg { filter: invert(1); } But on my product page where the font is already black, it causes it to turn white on a white background. How do I keep my header from inverting on product pages?
Solution creedon Posted February 19 Solution Posted February 19 body:not( .collection-type-products ) #header:hover a, body:not( .collection-type-products ) #header:hover img, body:not( .collection-type-products ) #header:hover svg { filter : invert( 1 ); } Let us know how it goes. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment