Jump to content

Remove hover effect on one item in navigation bar

Go to solution Solved by tuanphan,

Recommended Posts

Hi there,

Still me and my small company store 😆

I'm pretty much done now, and I'm struggling with a little thing (well I hope it's little).

I successfully managed to replace the customer login text link in the main navigation into an svg icon, but when hovering it, there are two underlines appearing (see picture attached).

 

We do have a custom hover effect for the entire navigation, but it should be just one line (the other items are working just fine). 

So I would like to remove these underlines ONLY on the customer icon item.

Is there a way to do that without breaking to whole hover effect ?

 

Thanks !

 

Site URL : https://www.la-bise.fr/
Pages under dropdown menu are protected, but if needed, password is : labisestore

Capture d’écran 2023-11-22 à 16.53.30.png

Link to comment
17 hours ago, SaranyaDesigns said:

@Margaux try this in custom CSS:

a.user-accounts-text-link.header-nav-item:hover::after, .user-accounts-link.header-nav-item:hover::after {
	background: transparent;
}

 

Hi @SaranyaDesigns, thank you for this !

 

It works somehow, but there is some weird behavior happening (when the mouse leaves from hover the icon). I don't know if we can get rid of it ?

Link to comment
  • Solution

Try this CSS under

.header-nav-item.user-accounts-text-link::after, .header-actions.header-actions--right *:after {
    display: none !important;
}
.header-nav-item.user-accounts-text-link, div.user-accounts-link {
    border: none !important;
    text-decoration: none !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!)

Link to comment
On 11/26/2023 at 1:41 AM, tuanphan said:

Try this CSS under

.header-nav-item.user-accounts-text-link::after, .header-actions.header-actions--right *:after {
    display: none !important;
}
.header-nav-item.user-accounts-text-link, div.user-accounts-link {
    border: none !important;
    text-decoration: none !important;
}

 

Thank you very much @tuanphan ! Works like a charm.

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.