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

    i am now using:

    .header_color .main_menu ul:first-child > li.current-menu-item > a, .header_color .main_menu ul:first-child > li.current_page_item > a {
    color: #ee008c
    }

    which works great when u are in main section… however if u are in a sub section – can u make the parent page menu highlight to same color?
    now it defaults to black

    thanks

    jaz

    #177616

    Hey Jaz!

    Add .current-menu-parent class to the selector:

    .header_color .main_menu ul:first-child > li.current-menu-item > a, .header_color .main_menu ul:first-child > li.current_page_item > a , .header_color .main_menu ul:first-child > li.current-menu-parent > a {
    color: #ee008c
    }
    

    Cheers!
    Josue

    #177732

    hmm i tried that but it doesn’t work… it’s the same as before..?

    #177740

    Hi!

    It does, for example, here i am in FAQ which is a children of Expertise:

    Cheers!
    Josue

    #178839

    thanks! it’s working..

    #178859

    Glad we could help. Let us know if you have any other questions or issues :)

    Regards,
    Josue

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Main menu highlight color’ is closed to new replies.