DerekWalker Posted June 22, 2020 Posted June 22, 2020 Site URL: https://www.derekwalkerphotography.com Hello! I've been able to change the color of my navigation text in the top header with custom css. The issue I'm having now is that I do not want the currently selected/active link to also have a hover effect on it. If you're on that page and hover on that navigation tab, the text should not change at all. Only the navigation tabs that are not active should change color on hover. A side thing I'd like to also do is add a fade to the hover animation so it doesn't change color instantly but has a .5 second fade. This is the code I currently have for the navigation colors (I also got rid of the underline): /* Nav item color */ .header-nav-item a { color: #a0acae !important; } /* Nav item hover color */ .header-nav-item a:hover { color: #000000 !important; } /* Nav item active color */ .header-nav-item--active a { color: #008da1 !important; } .tweak-transparent-header:not(.header--menu-open) .header-announcement-bar-wrapper .header-nav-item--active a { background-repeat: repeat-x; background-image: none!important; } Thanks!
rwp Posted June 23, 2020 Posted June 23, 2020 .header-nav-item--active a:hover { color: #008da1 !important; opacity: 1 !important; }
DerekWalker Posted June 23, 2020 Author Posted June 23, 2020 This worked perfectly, thank you so much!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.