Main menu highlighting on subpage which is not in submenu but in hierarchy July 9, 2022 by Tarik Billa You could use .current-menu-parent and/or .current-menu-ancestor.