Adds a menu-item-ancestor class to every menu item that has descendants.
As of April 2026, Menu-item-ancestor is a WordPress css plugin with 10 active installations and a 0/5 rating0. It has been downloaded 2.5K+ times in total. Requires WordPress 3.0+ and PHP false+. Available on WordPress.org since 2010. Last updated 15 years ago — may have compatibility concerns. Top alternative: WPCode – Insert Headers and Footers +….
This plugin is for developers and designers who want to have a separate class for menu items with children.
This plugin adds a menu-item-ancestor class to every menu item that has descendants.
Alows to use CSS to style only those menu items, that has descendants. For example you can add different background or different hover behavior.
| WordPress | 3.0+ requiredTested up to 3.0.5 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.