GregR Posted September 7, 2023 Posted September 7, 2023 Hi, I'm trying to change the hand icon to a black heart or smiley emoji on hover of navigation bar. Does anyone know how to do so? Using Corey Henson. Thank you! Greg
Solution Lesum Posted September 7, 2023 Solution Posted September 7, 2023 @GregR You can try this code snippet to display a black heart cursor on hover: .collection-nav-desc-wrapper .collection-nav .collection-nav-item span:hover { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='48' viewport='0 0 100 100' style='fill:black;font-size:24px;'><text y='50%'>❤</text></svg>") 16 0, auto; } GregR 1 If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee?
GregR Posted September 7, 2023 Author Posted September 7, 2023 This is great thank you Lesum! Is there any way to do it on hover of the header as well? Lesum 1
Lesum Posted September 7, 2023 Posted September 7, 2023 @GregR I wrote and tested the code on this URL: https://henson-demo.squarespace.com/ I'm not seeing any header on this template. Would it be possible to share your site URL so I can take a look? Thanks! If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee?
GregR Posted September 7, 2023 Author Posted September 7, 2023 Sure! Its www.gregoryreidphoto.com Im not sure if its a header, maybe a site title? Basically my logo
Lesum Posted September 7, 2023 Posted September 7, 2023 @GregR You can add this code snippet to change the cursor to a black heart icon on header logo hover. .site-branding h1 img:hover { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='48' viewport='0 0 100 100' style='fill:black;font-size:24px;'><text y='50%'>❤</text></svg>") 16 0, auto; } Here's the code if you would like to change the cursor to a red heart icon on header logo hover. .site-branding h1 img:hover { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='48' viewport='0 0 100 100' style='fill:black;font-size:24px;'><text y='50%'>❤️</text></svg>") 16 0, auto; } GregR 1 If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee?
GregR Posted September 7, 2023 Author Posted September 7, 2023 Love the red heart idea! Not to keep pestering you, but do you know how to make it red for header in the same font heart style as the black for the bottom.
Lesum Posted September 7, 2023 Posted September 7, 2023 @GregR Here's the updated code to display the red heart icon as the same font heart style as the black one: .site-branding h1 img:hover { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='48' viewport='0 0 100 100' style='fill:red;font-size:24px;'><text y='50%'>❤</text></svg>") 16 0, auto; } GregR 1 If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment