Jump to content

How can I change the nav bar separator colour individually (in theme 7.1)?

Recommended Posts

Posted

Hi,

Can someone help me? I am trying to change the individual dotes/separators to have different colors in the nav bar.

I've attached a screenshot of what it currently looks like.

All the dotes are red at the moment, I want them to be red, blue, and yellow, so it's alternating.

 

Current Code:

/* add dotes on menu bar */

.header-nav-item a:after {

  content: " • ";
  color: #EB212B !important;
  }

.header-nav-item:last-child a:after {
  
  content: '';

  }

Screenshot 2024-02-08 at 16.53.32.png

  • Replies 4
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Posted
16 hours ago, El04 said:

Hi,

Can someone help me? I am trying to change the individual dotes/separators to have different colors in the nav bar.

I've attached a screenshot of what it currently looks like.

All the dotes are red at the moment, I want them to be red, blue, and yellow, so it's alternating.

 

Current Code:

/* add dotes on menu bar */

.header-nav-item a:after {

  content: " • ";
  color: #EB212B !important;
  }

.header-nav-item:last-child a:after {
  
  content: '';

  }

Screenshot 2024-02-08 at 16.53.32.png

Can you share the website URL?

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Posted (edited)

Hi,

 

Yes its - guitar-ruby-k9mb.squarespace.com

Pass - Batman2024@

I would also like to replicate this for the footer nav bar links, please.

Thank you

Edited by El04
More info
Posted
On 2/9/2024 at 11:27 PM, El04 said:

Hi,

 

Yes its - guitar-ruby-k9mb.squarespace.com

Pass - Batman2024@

I would also like to replicate this for the footer nav bar links, please.

Thank you

Use CSS code like this

nav>div:nth-child(1) a:after {
    color: #f1f !important;
}
nav>div:nth-child(2) a:after {
    color: #fff !important;
}
nav>div:nth-child(3) a:after {
    color: red !important;
}
nav>div:nth-child(4) a:after {
    color: blue !important;
}

image.thumb.png.46fdaa03c430d19a23c6e6f6239065b6.png

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.