Adds classes for selected menu states such as highlighting categories when viewing a blog post or parent page when viewing an attachment page.
As of April 2026, Extra Classes is a WordPress css plugin with 30 active installations and a 5/5 rating from 3 reviews. It has been downloaded 3.1K+ times in total. Requires WordPress 3.7+ and PHP false+. Available on WordPress.org since 2013. Last updated 10 years ago — may have compatibility concerns. Top alternative: WPCode – Insert Headers and Footers +….
Adds missing classes for selected menu states. Classes added include:
current-page-parent and current_page_parentcurrent-page-ancestor and current_page_ancestorcurrent-menu-ancestorcurrent-menu-parentThe classes are added in the following scenarios:
Allows you to control which menu items should be selected (or deselected) when viewing certain pages of your site. You need to add classes to the menu items for this to work.
ecms-archive-{$post_type} – Select menu item when viewing a post type archive page.ecms-single-{$post_type} –…| WordPress | 3.7+ requiredTested up to 4.2.39 |
| PHP | false+ required |
Fix issue where menu selected states were not inherited correctly for non-404 pages.
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.