[Resolved] Menu current colour

Home Forums Support [Resolved] Menu current colour

Home Forums Support Menu current colour

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #820392
    Rafał

    Hi Tom and Team,

    I’ve got a menu on my webpage that used to link to anchors on the same page.
    Now I created a blog using the same menu and I’ve changed my menu links from:
    #WHATEVER
    to:
    mydomain.com/#WHATEVER

    It works fine however thare’s a small glitch, when I’m on the homepage all the menu items won’t highlight on hover because they are all coloured as “current” (because all anchors’ URLs start with my homepage address). Is there a workaround to this please?

    Many thanks for your help.
    Rafał

    GeneratePress 2.2.2
    GP Premium 1.7.8
    #821075
    David
    Staff
    Customer Support

    Hi there,

    you can try overwriting it with some CSS:

    .main-navigation .main-nav ul li[class*="current-menu-"]:hover > a {
        color: #072b40;
        background-color: #ffd86b;
    }
    #823076
    Rafał

    Yup, that’s been sorted 🙂

    Many thanks David!

    #823181
    David
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.