Jump to content

Navigation Bar Drop Down Menu - Amends to Customisation

Recommended Posts

Posted

Site URL: https://prism-seal-294l.squarespace.com/

I have added some custom CSS to ensure that the menu dropdowns have a highlight colour: 

/* Nav item hover color */
.header-nav-item a:hover {
    color: #F1797B !important;
    transition-duration: 0.4s;
}
/* Nav item active color */
.header-nav-item--active a {
    color: #F1797B !important;

 

However when you are on a page from the dropdown the whole menu dropdown is selected, can I change it so only the page you are on is active?

Site P: Aine123

Thank you 

Screenshot 2021-08-09 at 12.38.44.png

  • Replies 4
  • Views 399
  • Created
  • Last Reply
Posted
On 8/9/2021 at 6:40 PM, sophie.elizabeth said:

Site URL: https://prism-seal-294l.squarespace.com/

I have added some custom CSS to ensure that the menu dropdowns have a highlight colour: 

/* Nav item hover color */
.header-nav-item a:hover {
    color: #F1797B !important;
    transition-duration: 0.4s;
}
/* Nav item active color */
.header-nav-item--active a {
    color: #F1797B !important;

 

However when you are on a page from the dropdown the whole menu dropdown is selected, can I change it so only the page you are on is active?

Site P: Aine123

Thank you 

Screenshot 2021-08-09 at 12.38.44.png

Change this code

.header-nav-item--active a {
    color: #f1797b !important;
}

to this

.header-nav-item--active>a {
    color: #f1797b !important;
}

 

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!)

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.