Jump to content

7.1 Navigation - Hover - except for one folder

Recommended Posts

Site URL: https://harp-algae-smyn.squarespace.com/

Hi. I added this code below in order to have a hover on each button of the navigation bar.  This works fine.

/* Nav item hover - bold */
.header-nav-item a:hover {
    color: black !important;
      font-weight: bold;
}

However, I do not want the 5th button (Patient Resources) a folder, to turn bold when you hover over it because it is not an actual page (like the Services folder - this is an actual page).

Is there a way to never show the bold hover on Patient Resources? Desktop and mobile?
Thanks so much for you help!

Sherry

Link to comment
  • Replies 3
  • Views 255
  • Created
  • Last Reply

Top Posters In This Topic

14 hours ago, tuanphan said:
/* Nav item hover - bold */
.header-nav-item:not(:nth-child(5))>a:hover {
    color: black !important;
      font-weight: bold;
}

This works beautifully on desktop, thank you!!

Is there a way to have the bold hover effect excluding the ( :nth-child(5) on mobile as well?

 

Link to comment
On 4/11/2022 at 9:21 PM, swvarian said:

This works beautifully on desktop, thank you!!

Is there a way to have the bold hover effect excluding the ( :nth-child(5) on mobile as well?

 

Try this code

/* Nav item hover - bold */
.header-nav-item:not(:nth-child(5))>a:hover, div.container:not(:nth-child(5)) a:hover {
    color: black !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.