Tagged: menu color, menu-item
I’ve changed the menu color for one item using a custom CSS class in Appearance>Menu.
I’d also like to change the…
– The highlight line below the menu item (active menu item color) when someone is on that particular page
– The highlight line below the menu item (hover menu item color) when someone mouses over that specific menu item
(The same color for all of the above)
How can I achieve this?
Hey nV15OoBtg21iTn5z,
Please try the following in Quick CSS under Enfold->General Styling:
#menu-item-5189 .avia-menu-fx, #menu-item-5189:hover .avia-menu-fx {
background-color: green;
border-color: green;
}
Best regards,
Rikard
I tried using that CSS code but it didn’t work.
I also tried adding “!important” and I made sure to clear all of my CSS settings for caching. Still not working, though.
Hi,
Thank you for the inquiry.
The hash or pound symbol (#) in the hex color values are missing. Please try the css code again.
#menu-item-5189 .avia-menu-fx, #menu-item-5189:hover .avia-menu-fx {
background-color: #a44200;
border-color: #a44200;
}
Screenshot: https://1drv.ms/u/s!AjjTfXSRbKTvyTSQ5giSrvq4CAiJ?e=IsFr9E
Best regards,
Ismael
Foolish oversight on my part. Thanks, Ismael. It is working now.
Hi,
Great, I’m glad that you got it working. Please let us know if you should need any further help on the topic, or if we can close it.
Best regards,
Rikard
Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.
Best regards,
Mike