Tagged: x
-
AuthorPosts
-
September 20, 2016 at 5:45 pm #1183802
pointblankcreativeParticipantHi there,
I searched the forum and found out how to change the hover colour of a menu item as well as the active one:
.x-navbar .desktop .x-nav > .current-menu-item > a{
color:red;
}.x-navbar .desktop .x-nav > li > a:hover{
color:red;
}What I’m wondering is how to change the colour of non-active, non-hovered links? I need custom colors on the front page because of a different background image.
Thanks!
September 20, 2016 at 6:29 pm #1183836
NicoModeratorHi There,
Thanks for writing in.
Change the text color in your Customizer > Header > Links – Text > Navbar Links.
Hope it helps.
Let us know how it goes.
Thanks.
September 20, 2016 at 7:02 pm #1183867
pointblankcreativeParticipantHi, thanks for the quick response. I should have been more clear, I only need to do this to one page, not the whole site. I’m looking for code to add to the customizer like the snippets I posted in my original post, but for the non-active, non-hovered links.
Thanks.
September 20, 2016 at 9:43 pm #1184111
JadeModeratorHi there,
If you want the code to only target the homepage, you can try:
.home .x-navbar .desktop .x-nav > .current-menu-item > a{ color:red; } .home .x-navbar .desktop .x-nav > li > a:hover{ color:red; }Hope this helps.
September 21, 2016 at 4:03 pm #1185430
pointblankcreativeParticipantSorry, it’s still not what I’m referring to. I’ve uploaded a screenshot.
In the photo:

#1 is the active page (I have the code to change this on a single page)
#2 is the hover state (I have the code to change this as well)
#3 is a link to another page but not hovered (this is what I want the code for)Again, I know I can change this as a global setting, but I need code for just one page.
Thanks!
September 21, 2016 at 10:05 pm #1185861
NicoModeratorHi There,
Thanks for writing in.
The code below is specific for the homepage if you are not using homepage, you could add the page class id instead of .home.
For current menu color:
.home .x-navbar .desktop .x-nav > .current-menu-item > a{ color:red; }For hover color
.home .x-navbar .desktop .x-nav > li > a:hover{ color:red; }For non hovered:
.home .x-navbar .desktop .x-nav > li > a{ color:red; }Hope it helps.
Let us know how it goes.
Thanks.
September 22, 2016 at 12:41 pm #1186718
pointblankcreativeParticipantThat works! Thanks!
September 22, 2016 at 12:57 pm #1186750
Prasant RaiModeratorYou are most welcome. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1183802 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
