Index: wp-includes/nav-menu-template.php =================================================================== --- wp-includes/nav-menu-template.php (revision 16518) +++ wp-includes/nav-menu-template.php (working copy) @@ -322,6 +322,9 @@ $classes[] = 'menu-item-type-' . $menu_item->type; $classes[] = 'menu-item-object-' . $menu_item->object; + if ( empty( $key ) ) + $classes[] = 'first-menu-item'; + // if the menu item corresponds to a taxonomy term for the currently-queried non-hierarchical post object if ( $wp_query->is_singular && 'taxonomy' == $menu_item->type && in_array( $menu_item->object_id, $possible_object_parents ) ) { $active_parent_object_ids[] = (int) $menu_item->object_id; Index: wp-includes/post-template.php =================================================================== --- wp-includes/post-template.php (revision 16518) +++ wp-includes/post-template.php (working copy) @@ -885,10 +885,10 @@ $text = __('Home'); else $text = $args['show_home']; - $class = ''; + $class = 'first-menu-item'; if ( is_front_page() && !is_paged() ) - $class = 'class="current_page_item"'; - $menu .= '