Site logo

Archived topic

Menu hover background color seems to have stopped working

6 replies · Started by Brent Wilson on November 18, 2021

Viewing posts 1–7 of 7

I had a yellow/orange menu background color on hover. But it seems to have stopped working. Any troubleshooting ideas you can offer to help me with this? I think (but not 100%) that it may have stopped working after doing some image optimization with ShortPixel. But I now have ShortPixel uninstalled. Right now, the only active plugins on the site are GenerateBlocks and GP Premium.

Yes, I have that hover color set in the customizer. It was working, but for some reason stopped working.

Is the current color set to empty?

Your site is a one page site, all the menu items are anchors, so they are actually using the current background color, if it's empty, then there will be no background color added to the menu items.

I think you'll need CSS for this, give it a try:

.main-navigation .main-nav ul li:hover > a {
    background-color: orange !important;
}

Well, some CSS got it working again. I needed to add some CSS for the hover text color as well.

But I would sure like to know why this broke on this particular site. The hover background/text color was working fine without the CSS. Then earlier today it "broke." Could a plugin conflict or something cause a break like that which doesn't go away even after removing the plugin?

Actually, the other thing that seems to be broken is the current color . I want current to go back to the standard colors. What CSS do I need to set current color? I really wish I could figure out why this broke. I wonder if I were to export the site and then reimport it into a new install of Wordpress if that would fix it.

But I would sure like to know why this broke on this particular site. The hover background/text color was working fine without the CSS. Then earlier today it “broke.”

I don't think it would work in the first place without CSS in your situation.

I want current to go back to the standard colors.

All your menu items are current menu items, so they should inherits the standard color if you leave the current color/background color blank.

You've set the current color to black and background to white, is that what you want?
https://www.screencast.com/t/wNS9eA2WiMLe

This archived topic is closed to new replies.