Jump to content

How to change the colour of the first link in my nav menu only?

Recommended Posts

I'm trying to change the colour of the first menu link in my site's main navigation. The site isn't live yet so I can't link you. 

The nav looks like this:

Shop - Guide - FAQ - About - Contact

I want to change Shop to this colour:  #C2B277

I can't figure out how to target it using nth-child, nothing seems to work. Any help would be very much appreciated, thank you!

Link to comment
  • Replies 5
  • Views 764
  • Created
  • Last Reply
  • 2 weeks later...
7 hours ago, tuanphan said:

Add to Home > Design > Custom CSS


header#header [href="/shop"] {
    color: #c2b277;
}

 

That's perfect, thank you so much!

May I ask you one more please?

I'm trying to set it so when I hover over the individual social icons in the footer, they change to opacity 1.

I have this code:

.social-custom {
  text-align: center;
  font-size: 3em;
  word-spacing: 20px;
  opacity: .5;
  transition: .5s
}

.social-custom a:hover {
  opacity: 1;
}

<div class="social-custom">
<a href="tel: 0777 777 777"><i class="fab fa-whatsapp"></i></a>
<a href="https://www.etsy.com/uk/shop/wellworndenim"><i class="fab fa-etsy"></i></a>
<a href="https://www.instagram.com/wellworndenim/"><i class="fab fa-instagram"></i></a>
</div>

The above is not working.

If I put:

.social-custom:hover

Then all three of the icons have the desired effect upon hover, but for some reason I cannot target individual icons. This works in standard CSS, but I'm obviously missing something with SP code...

Cheers!

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.