Menu Item Custom Attributes
Menu Item Custom Attributes allows you to add HTML attributes such as id , class , and data-* directly to WordPress menu items from the admin interface. This plugin is perfect for developers and designers who want fine-grained control over menu elements for styling, tracking, or custom scripting — a
Menu Item Custom Attributes allows you to add HTML attributes such as id , class , and data-* directly to WordPress menu items from the admin interface.
This plugin is perfect for developers and designers who want fine-grained control over menu elements for styling, tracking, or custom scripting — all without editing theme code.
Key Features – Add unique HTML ID , CSS Class , or custom Data attributes to individual menu items – Works directly within the native Appearance → Menus screen – Compatible with all themes and page builders (Elementor, Astra, Divi, etc.) – Lightweight and performance-optimized – Safe and secure with sanitization and nonce checks
Use it to apply special styles, attach JavaScript actions, or integrate with analytics tools like Google Tag Manager.
Support
For feature requests, issues, or feedback, please visit the Support Forum .
License
This plugin is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Credits
Developed and maintained by Ponsiva Pandian Website: www.iamponsiva.rf.gd
- 01Upload the plugin files to the /wp-content/plugins/menu-item-custom-attributes/ directory, or install it via Plugins → Add New in WordPress.
- 02Activate the plugin through the Plugins menu.
- 03Go to Appearance → Menus .
- 04Edit any menu item — you’ll see new fields to add Custom ID , Custom Class , and Custom Data Attributes .
Frequently asked questions.
Can I add multiple CSS classes?
Yes, you can add multiple classes separated by spaces, just like HTML.