I am building a custom theme. For the
author.php file that displays an author profile with their posts, I would like my 'About' menu item to turn active (get active class).
I have tried:
add_filter('nav_menu_css_class', 'filter_handler', 10, 2);
but can't get it to work because author.php is not associated with any WordPress pages and is using default wordpress template.
Is there any workaround to it?