Support » Theme: GeneratePress » Customise main navigation background-color after hover

  • Resolved bijdrager

    (@bijdrager)


    Hello Generatepress community,

    While building a site with Generatepress I ran into a problem. Here I am, hoping for a solution.

    The people are very specific when it comes to the colours of the main navigation (and the whole site).

    I can’t seem to get the color of a specific main navigation part right.
    When I hover (not click! that works fine) over a menu item with a submenu, like “Maatkleding” or “Over ons” the main menu item turns dark grey instead of the desired colour.

    Can you help me to find out the CSS to customise this?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Tom

    (@edge22)

    Hi there,

    Right now you have this CSS:

    .main-navigation .main-nav ul li > a:hover {
        background-color: #fcc719;
        color: #5c3614;
    }

    Instead, try this:

    .main-navigation .main-nav ul li:hover > a {
        background-color: #fcc719;
        color: #5c3614;
    }

    Let me know 🙂

    Thank you Tom,
    Works perfect!

    Theme Author Tom

    (@edge22)

    You’re welcome 🙂

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