Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #715336

    Hi there
    Please can you give me the CSS to target the colour of the Active Menu Item in the Submenu? I am using the following for the Main Menu and the Mobile Menu but I don’t have the CSS for the Submenu:

    #avia-menu .current-menu-item > a {
    color: #66b255;
    }
    #mobile-advanced li.current-menu-item > a {
    color: #66b255;
    }

    Thanks

    CJ

    #715552

    Hey jaroljmek!

    Same code works, the color just gets overriden by other css, try to change your code to this:

    #avia-menu .current-menu-item > a {
        color: #66b255 !important;
    }
    
    #mobile-advanced li.current-menu-item > a {
    color: #66b255 !important;
    }

    Hope this helps :)

    Cheers!
    Nikko

    #715583

    Hi there Nikko

    That worked for the submenu item. But now how can I also ensure that the parent menu item also displays the active colour?

    Many thanks!

    CJ

    #715600

    Hey!

    You can use this code for parent page:

    #avia-menu .current-page-parent > a,
    #mobile-advanced li.current-page-parent > a {
        color: #66b255 !important;
    }

    Let us know if it works ;)

    Regards,
    Nikko

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