WordPress.org

Support

Support » Themes and Templates » [Resolved] Submenu background color doesn't display

[Resolved] Submenu background color doesn't display

Viewing 5 replies - 1 through 5 (of 5 total)
  • try adding your hover background color to line 479 in your stylesheet style.css.

    Moderator Andrew Nevins

    @anevins

    Forum moderator

    Try to avoid editing the theme’s files if possible.
    You’ll only lose those modifications when the theme updates.

    Download & install this Custom CSS Manager plugin and use its allocated section of the dashboard to hold this;

    a, #access ul ul :hover > a {
     background: #79a90c !important;
    }

    You’re having to use !important because there’s this CSS style;

    a:hover {
     background-color: none !important;
     background: none !important;
    }

    Thank you!

    I added background color to line 479 and it worked.

    How do I get the main menus to change color when I hover over them?

    I didn’t go with the other option as I’ve already made a buch of other modification to the theme’s files and I don’t plan to do theme updates. (Hope that isn’t a bad idea)

    Andrew’s code fixed the main menus too.

    a, #access ul ul :hover > a {
    background: #79a90c !important;
    }

    Thank you both!

    Good idea about the Custom CSS Manager, Andrew.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Submenu background color doesn't display’ is closed to new replies.