Jump to content

Anyone know how to code, so that navigation bar highlights on hover?

Recommended Posts

Hi, I'm currently building a site with Corey Henson template. 

Anyone know how to code so that navigation bar highlights on hover.  Also curious, right now the arrow changes to a hand when over the link. Is there a code to change the hand to a different icon?

 

 

Thank you!

 

Link to comment

@GregR Here's a code snippet to highlight the navigation bar and change the hand icon on hover. Following code will change navbar background color to green and the hand icon to a heart icon on hover. 

.collection-nav-desc-wrapper .collection-nav .collection-nav-item span:hover {
	background: #197039 !important;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
	cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/9632/heart.svg), auto;
}

We can easily modify the code to display the highlight and icon differently. 

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?

Link to comment
  • 2 weeks later...

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.