WordPress.org

Support

Support » Themes and Templates » Highlight parent menu item

Highlight parent menu item

  • abveritas
    Member

    @abveritas

    Currently code for highlighting focus page is:
    .main-navigation li.current_page_item a,
    .main-navigation li.current-menu-item a {
    color: #f7f6f2;
    }

    Seems to me the theme is missing highlighting parent:
    .main-navigation li.current_page_item a,
    .main-navigation li.current-menu-item a,
    .main-navigation li.current_page_ancestor a {
    color: #f7f6f2;
    }

    Adding the last line works to highlight main menu item, while being on a sub-page

  • The topic ‘Highlight parent menu item’ is closed to new replies.