DerekWalker Posted June 22, 2020 Share 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! Link to comment
rwp Posted June 23, 2020 Share Posted June 23, 2020 .header-nav-item--active a:hover { color: #008da1 !important; opacity: 1 !important; } Link to comment
DerekWalker Posted June 23, 2020 Author Share Posted June 23, 2020 This worked perfectly, thank you so much! rwp 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment