See http://usm4.siteground.biz/~leadopti/howdoyouq.com
I am trying to set the hover and active background and text color in the main menu. I was able to get the background hover color by targeting this: li.menu-item-top-level a:hover
And I was able to target the hover text color with this: li.menu-item-top-level span.avia-menu-text:hover But that only works when the actual text is hovered. I want the menu text color to change when the background color changes on hover, but I can’t find the selector to target for that.
Also, I am trying to give the same css described above to the active link in the main nave, but I can’t find the selector to target for that. li.menu-item-top-level a:active is not doing anything.
Hey robphat,
Have you tried going to Enfold theme options > Advanced Styling tab and editing “Main menu links” instead?
Best regards,
Yigit
I forgot about the Advanced Styling tab. Got it working, but how do I make the search icon in the menu not have a hover effect? Only custom css?
And how do we set hover css for Active menu item?
Hi!
I am getting “403 – Forbidden Error
You are not allowed to access this address.
If the error persists, please contact the website webmaster.” error so i could not check the site. Can you please temporarily disable that restriction
Best regards,
Yigit
Ah. Sorry. I just swapped the domain on that site. It’s now at http://theqmart.com
Thanks,
Rob
Hi,
You can use this to change the style of the current menu:
#top #header .av-main-nav > .current_page_item > a > .avia-menu-text {
color: red !important;
}
#top #header .av-main-nav > .current_page_item > a {
background-color: black !important;
}
Best regards,
Ismael
Got it. Thanks!