Jump to content

Underlines in nav still appearing after adding CSS code

Go to solution Solved by paul2009,

Recommended Posts

Posted

Site URL: https://www.heidiarcilla.com/

Hello,

The underlines in my navigation header are still appearing despite adding the custom CSS code:

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

I would like for the nav items to remain bold, but it appears that the underlines aren't going away. Please help!

Screenshot2024-10-04at11_07_38AM.thumb.png.354f305d195c41da5fecdb0fd62511f7.png

Thank you!

  • Replies 5
  • Views 574
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution
Posted
27 minutes ago, uhohitsheidiho said:

The underlines in my navigation header are still appearing despite adding the custom CSS code

Hello @uhohitsheidiho 👋

The underlines are added as an animation using the ::after pseudo-element. You should be able to hide them with something like this:

.tweak-global-animations-animation-type-flex .header-nav-item:not(.header-nav-item--folder) a::after {
  display: none;
}

Did this help? Please give feedback by clicking an icon below  ⬇️

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Posted
11 hours ago, uhohitsheidiho said:

This worked however, my items aren't in bold font.

When I checked the site (before providing the code to remove underlining) there wasn't any bold formatting. However, you can add bold formatting for the active page by adding:

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

Did this help? Please give feedback by clicking an icon below  ⬇️

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Posted

Hi @paul2009,

Sorry to have to reopen this ticket, the codes you provided are working but I notice that when you click on the case studies listed under the "work" menu, "work" nav item isn't bold. It stays bold on the "home" nav item. Could you please advise?

Thank you!

-Heidi

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.