Tagged: x
-
AuthorPosts
-
May 20, 2016 at 11:03 am #1001714
NightFoxParticipantHi there
Can you please help me to change the color of a specific menu items on hover text color please?
Ive been able to change the background color of the menu item, but not the on hover text color.
Thx for your help!
Currently using:
.menu-item-25:hover {
background-color: #00ad3e;
}want to add:
color: #ffffff; to this menu item on hover to textMay 20, 2016 at 11:04 am #1001715
NightFoxParticipantThis reply has been marked as private.May 20, 2016 at 3:04 pm #1002041
JoaoModeratorHi NightFox,
On CSS Classes have a . in front while IDs have a # in front.
I couldn´t see your site, but I believe the solution you are looking for is.
#menu-item-25 a:hover { background-color: #00ad3e; }Hope that helps,
Joao
May 23, 2016 at 2:45 am #1004774
NightFoxParticipantThis reply has been marked as private.May 23, 2016 at 3:03 am #1004788
LelyModeratorHello There,
We can update above CSS to this,
#menu-item-25 >a:hover { color: #ffffff; }Above change will make sure that the font color change on hover will be on the main menu only.
In case you just want to use the previous suggestion and just change to background color of the submenu link on hover, please use the following CSS:
.sub-menu>li:hover { background: red; /*Change red to your preferred color*/ }Hope this helps.
May 24, 2016 at 1:58 am #1006689
NightFoxParticipantHi thanks a lot.
Working well – how can i change the on hover menu drop down text color for this? I’ve tried:
.sub-menu>li:hover {
background: red;
color: #ffffff;
}But it’s not working. Also added !important as well to that.
Thanks for your help.
May 24, 2016 at 2:02 am #1006697
NightFoxParticipantThis reply has been marked as private.May 24, 2016 at 2:02 am #1006699
RupokMemberHi there,
Your site is not loading anymore so can’t test but you can try this to change the color of submenu item on hover :
.sub-menu > li:hover a { color: #ffffff; }or
.sub-menu > li > a:hover { color: #ffffff; }Hope this helps.
Cheers!
May 24, 2016 at 2:28 am #1006724
NightFoxParticipantUnfort this is still not working – we have tried both options noted there, thank you.
I provided you with our wp-admin logins earlier -please can you take a look?May 24, 2016 at 2:42 am #1006743
RupokMemberHi there,
Thanks for updating. I missed your other reply as I have posted my reply at the same time. Maybe we shouldn’t reply that fast 🙂
However the code is working but being overridden by other code. You can try this :
.sub-menu > li > a:hover { color: #ffffff !important; }Hope this helps.
Cheers!
May 24, 2016 at 5:18 am #1006936
NightFoxParticipantThx got it, appreciated!
May 24, 2016 at 5:48 am #1006985
ThaiModeratorYou’re most welcome 🙂
If you need anything else please let us know.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1001714 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
