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!

Edited by wellworndenim
Link to comment
  • 2 weeks later...
8 hours ago, wellworndenim said:

https://wellworndenim.squarespace.com

password: wellworndenim

Thanks a lot!

Add to Home > Design > Custom CSS

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

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
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

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.