Jump to content

Navigation Bar Drop Down Menu - Amends to Customisation

Recommended Posts

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

Link to comment
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

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

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
On 8/13/2021 at 10:45 PM, sophie.elizabeth said:

Thank you! Please could you help me assign a colour to the social icons navigation? 

Try this CSS

header#header:not(.shrink) svg {
    fill: black;
}

 

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

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.