Jump to content

Anyone know how to change cursor symbol on navigation hover?

Go to solution Solved by Lesum,

Recommended Posts

Posted

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
Posted

@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;
}

 

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?

Posted

@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?

Posted

@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;
}

 

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?

Posted

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.

Posted

@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;
}

 

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?

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.