• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 Hover on navBar

Enguerran A

Well-known member
#1
Hello, I need to add a hover changing the color for each links on the navBar I have but I don't know how to keep this color displayed.

I tried that but the colors are displayed only a few times before an other css rules erases the one I added.
.navTabs .navTab.portal.PopupClosed .navLink:hover
{
color: orange !important;
}
.navTabs .navTab.forums.PopupClosed .navLink:hover
{
color: blue !important;
}
 

Jake Bunce

XenForo moderator
Staff member
#2
There are different tab states to consider. Use this code to ignore the tab state and always apply the hover color:

Code:
.navTabs .navTab.forums .navLink:hover
{
color: blue !important;
}