Is there any way to have a hover effect on the main menu in the header? Currently I have white font and on hover, there is a bar below but I would like to make these look like a white “button” with faded rounded edges and black font on hover.
Any help would be greatly appreciated.
My website is http://www.matt-morse.com
Hi!
Please add following code to Quick CSS in Enfold theme options under Styling tab
.header_color .main_menu ul:first-child>li>a:hover {
background-color: white!important;
color: black!important;
}
Regards,
Yigit
That did not do anything.
Check matt-morse.com
There are no submenus at this time. The menu is all top level pages that I want to have the hover button effect on.
Code is not being applied. Try adding the code to style.css of your child theme in Appearance > Editor
Regards,
Yigit
That is perfect! Is there a way to make it not the entire height of the header, but somewhere around 50% instead?
Also, can I remove the white highlight from the search icon?
Or at least center the search icon in the middle of the highlight on hover?
Hi!
Add following code to Style.css as well
#top .main_menu .menu>li:last-child>a {
padding-right: 15px!important;
}
Changing the height is not possible with the header type you are using
Cheers!
Yigit
I added that and no changes were made. What was the code for?