[Resolved] How to change background of hovered sub-menu items and change font color

Home Forums Support [Resolved] How to change background of hovered sub-menu items and change font color

Home Forums Support How to change background of hovered sub-menu items and change font color

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1630860
    emanharout

    Hi all,

    I was wondering what CSS I would need to highlight the background of sub-menu items that are being hovered over. Closely related: I’m also trying to change the font color.

    Thank you.

    #1630911
    Leo
    Staff
    Customer Support

    Hi there,

    Have you tried the customizer options first?
    https://www.screencast.com/t/LsfGNMm5RQ

    Let me know 🙂

    #1638943
    emanharout

    Hey, thanks Leo!

    Unfortunately I’m also supporting dark mode, which means I can’t really rely on the customizer (I actually just need the CSS selector the customizer uses). Any chance you can help me identify that?

    #1639283
    David
    Staff
    Customer Support

    Hi there,

    for the sub-menu:

    .main-navigation ul ul

    For the individual sub menu item:

    .main-navigation .main-nav ul ul li a

    And their hover selector:

    .main-navigation .main-nav ul ul li:hover > a

    #1641044
    emanharout

    Thanks, this seems to fix it.

    #1641361
    David
    Staff
    Customer Support

    Glad to hear that.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.