Tagged: x
-
AuthorPosts
-
December 6, 2016 at 1:04 pm #1283513
Andreas BjerveParticipantHi, I want a different color, and matching hover color, for each of the links in my NAV bar. The idea is that each link will match a color in my logo (red, green, yellow, purple).
I hope this is possible! 🙂
Thanks for continued awesome assistance from you guys!
December 6, 2016 at 1:04 pm #1283514
Andreas BjerveParticipantThis reply has been marked as private.December 6, 2016 at 2:57 pm #1283640
Andreas BjerveParticipantThis reply has been marked as private.December 6, 2016 at 3:14 pm #1283657
Nabeel AModeratorHi there,
Thanks for writing in! Please add the following code in your Customizer via Appearance > Customize > Custom > Edit Global CSS:
li#menu-item-210 a { color: #3eb54a; } li#menu-item-210 a:hover { color: #e9b81f; } li#menu-item-166 a { color: #f26987; } li#menu-item-166 a:hover { color: #e9b81f; } li#menu-item-167 a { color: #6e5ba7; } li#menu-item-167 a:hover { color: #e9b81f; } li#menu-item-168 a { color: #e9b81f; } li#menu-item-168 a:hover { color: #e9b81f; }Change the colors and hover colors as per your need. Let us know how this goes!
December 6, 2016 at 4:48 pm #1283774
Andreas BjerveParticipantThis is just perfect!:D
Now, how do I also color that small top hover-line above the NAVbar links (which is now grey)?
December 6, 2016 at 11:08 pm #1284072
Prasant RaiModeratorHello Andreas,
Thanks for writing in!
You can add this under Custom > CSS in the Customizer:
.x-nav-wrap.desktop li a:hover { box-shadow: inset 0 4px 0 0 #e9b81f !important; }Thanks.
December 7, 2016 at 4:19 am #1284328
Andreas BjerveParticipantOk – really great!
A last detail however: I want that hover-line (box-shadow?) to have the same hover color as each of the links. (So when I click e.g. “Contact”, which has a purple hover-color, that hover-line on top will also turn purple). So, four different colors, one for each of the links.
Thanks! 🙂
December 7, 2016 at 4:38 am #1284346
ChristopherModeratorHi there,
Please update following code :
li#menu-item-210 a:hover { color: #f26987; } li#menu-item-167 a:hover { color: #3eb54a; } li#menu-item-168 a:hover { color: #6e5ba7; }To:
li#menu-item-210 a:hover { color: #f26987; box-shadow: inset 0 4px 0 0 #f26987 !important; } li#menu-item-167 a:hover { color: #3eb54a; box-shadow: inset 0 4px 0 0 #3eb54a !Important; } li#menu-item-168 a:hover { color: #6e5ba7; box-shadow: inset 0 4px 0 0 #6e5ba7 !important; }Hope it helps.
December 7, 2016 at 5:11 am #1284386
Andreas BjerveParticipantThanks! Exactly as I wanted. Great stuff! 😀
December 7, 2016 at 5:14 am #1284390
ThaiModeratorIf you need anything else please let us know.
December 9, 2016 at 12:26 am #1287079
Andreas BjerveParticipantHi there! A last little detail on this topic:
I´d like to be able to change the colors of the navbar-link “box shadow” (not sure wether that´s the name for it; that line over the navbar links) when it it selected. It´s grey now, once you´ve navigated to the selected page. I want different colors for each.
Thanks!
December 9, 2016 at 12:26 am #1287080
Andreas BjerveParticipantThis reply has been marked as private.December 9, 2016 at 12:52 am #1287094
FriechModeratorHi There,
You can add this under Custom > CSS in the Customizer.
/*contact*/ .x-navbar .desktop .x-nav > .current-menu-item.menu-item-168 > a {box-shadow: inset 0 4px 0 0 #6e5ba7;} /*blog*/ .x-navbar .desktop .x-nav > .current-menu-item.menu-item-167 > a {box-shadow: inset 0 4px 0 0 #3eb54a;} /*about*/ .x-navbar .desktop .x-nav > .current-menu-item.menu-item-166 > a {box-shadow: inset 0 5px 0 0 #e9b81f;} /*services*/ .x-navbar .desktop .x-nav > .current-menu-item.menu-item-210 > a {box-shadow: inset 0 4px 0 0 #f26987;}Hope it helps, Cheers!
December 9, 2016 at 2:23 am #1287117
Andreas BjerveParticipantPerfect! Thanks!
🙂December 9, 2016 at 2:35 am #1287122
Rue NelModeratorYou’re welcome!
Thanks for letting us know that it has worked for you. -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1283513 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
