tbliston Posted August 29, 2019 Share Posted August 29, 2019 I'm trying to change the color of one of the items in my navigation bar. I’d like to make it this shade of blue (#0f73ba) while keeping the others grey. I've been testing this in the CSS editor, but it hasn't been working: nav.main-nav li:nth-of-type(2) a { color: #0f73ba;} Link to comment
tuanphan Posted August 29, 2019 Share Posted August 29, 2019 @tbliston You should share site url to community check! 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
tbliston Posted August 30, 2019 Author Share Posted August 30, 2019 My website is www.bluutour.com. @tuanphan I was unable to get your first comment to work Link to comment
tbliston Posted August 30, 2019 Author Share Posted August 30, 2019 My website is www.bluutour.com. @tuanphan I was unable to get your first comment to work Link to comment
tuanphan Posted August 30, 2019 Share Posted August 30, 2019 @tbliston @tbliston Add to Home > Design > Custom CSS /* Home */ .Header-nav-inner a:nth-child(1) { color: #0f73ba !important; } /* Become a tour creator */ .Header-nav-inner a:nth-child(2) { color: #0f73ba !important; } /* Download */ .Header-nav-inner a:nth-child(3) { color: #0f73ba !important; } /* Campuses */ .Header-nav-inner span:nth-child(4) a { color: #0f73ba !important; } /* How it works */ .Header-nav-inner span:nth-child(5) a { color: #0f73ba !important; } /* About Us*/ .Header-nav-inner span:nth-child(6) a { color: #0f73ba !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
tbliston Posted August 30, 2019 Author Share Posted August 30, 2019 @tuanphan Thank you! That worked. Link to comment
tbliston Posted August 30, 2019 Author Share Posted August 30, 2019 @tuanphan Thank you! That worked. Link to comment
tuanphan Posted August 30, 2019 Share Posted August 30, 2019 @tbliston You can Accept Answer & Upvote ;) 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
tbliston Posted August 30, 2019 Author Share Posted August 30, 2019 @tuanphan is there a way to limit the color change so it only changes the second position in the navigation bar? It's currently also changing the color for the second position in the drop down boxes (attached to the navigation bar). Link to comment
tuanphan Posted August 30, 2019 Share Posted August 30, 2019 @tbliston Change the code .Header-nav-inner>a:nth-child(2) { color: #0f73ba !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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.