To reduce the extraneous WordPress classes and add unique IDs to navigation menus.
As of April 2026, Navigation Menu IDs & Classes is a WordPress id plugin with 100 active installations and a 4.8/5 rating from 5 reviews. It has been downloaded 11K+ times in total. Requires WordPress 3.0+ and PHP false+. Available on WordPress.org since 2011. Last updated 10 years ago — may have compatibility concerns. Top alternative: Reveal IDs.
This plug-in limits the classes WordPress added to navigation menus to only those desired by the Theme owner,
adds a unique ID to each li and removes any empty class attributes.
More about this plug-in can be found at:
http://aarontgrogg.com/2011/09/28/wordpress-plug-in-navigation-menu-ids-classes/
Please let me know if you have any questions/suggestions/thoughts,
Atg
| WordPress | 3.0+ requiredTested up to 4.1.42 |
| PHP | false+ required |
2015-03-13:
* Fixing issue if no cusotm classes exist
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.