Jump to content

Active link styling

Recommended Posts

Hello all, 

 

I am trying to style my nav links, in particular my categories which I have linked into a folder, so therefor they are sub menus.

I want them to be bold when I am currently on that particular page.

Any help is appreciated

Link to comment

can't see your site as no link posted, but you could add some css to your site's Custom CSS section to do this. tested this on my 7.1 site.

.header-nav-folder-item--active {
  font-weight:bold;
}

The active top-level folder should already be styled differently (with an underline usually), but you can target that with css like this

.header-nav-item--folder.header-nav-item--active {
  font-weight:bold;
}

 

Dave Hart. Software/Technology Consultant living in London. buymeacoffee 

Link to comment
  • 10 months later...
4 hours ago, dantone1 said:

Hi, this code doesnt seem to work on my site, able to help pls?

https://tangerine-coconut-kfnn.squarespace.com/

pw:    welcome123

 

I see you solved with this code?

div.header-nav-item--active a {
    background-image: none !important;
    font-weight: bold;
}

 

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

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.