prevent category page from also highlighting blog-page menu
Add this to your child theme’s functions.php: add_filter(‘nav_menu_css_class’, ‘fix_category_menu_active_class’, 10, 2); function fix_category_menu_active_class($classes, $item) { // If we’re on a category archive if (is_category()) { // Get the ID of the blog page (posts page) $blog_page_id = get_option(‘page_for_posts’); // If this menu item is the blog page if ($item->object_id == $blog_page_id) { // Remove the … Read more