Title: Menu Item Custom Attributes
Author: Ponsiva . Pandian
Published: <strong>8 de noviembre, 2025</strong>
Last modified: 8 de noviembre, 2025

---

Search plugins

![](https://ps.w.org/menu-item-custom-attributes/assets/banner-772x250.png?rev=3392211)

![](https://ps.w.org/menu-item-custom-attributes/assets/icon-256x256.png?rev=3392211)

# Menu Item Custom Attributes

 By [Ponsiva . Pandian](https://profiles.wordpress.org/ponsiva/)

[Download](https://downloads.wordpress.org/plugin/menu-item-custom-attributes.1.2.zip)

 * [Details](https://pe.wordpress.org/plugins/menu-item-custom-attributes/#description)
 * [Reviews](https://pe.wordpress.org/plugins/menu-item-custom-attributes/#reviews)
 *  [Installation](https://pe.wordpress.org/plugins/menu-item-custom-attributes/#installation)
 * [Development](https://pe.wordpress.org/plugins/menu-item-custom-attributes/#developers)

 [Support](https://wordpress.org/support/plugin/menu-item-custom-attributes/)

## Description

**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](https://wordpress.org/support/plugin/menu-item-custom-attributes/)**.

### 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](https://pe.wordpress.org/plugins/menu-item-custom-attributes/www.iamponsiva.rf.gd?output_format=md)

## Installation

 1. Upload the plugin files to the `/wp-content/plugins/menu-item-custom-attributes/`
    directory, or install it via **Plugins  Add New** in WordPress.
 2. Activate the plugin through the **Plugins** menu.
 3. Go to **Appearance  Menus**.
 4. Edit any menu item — you’ll see new fields to add **Custom ID**, **Custom Class**,
    and **Custom Data Attributes**.

## FAQ

### Can I add multiple CSS classes?

Yes, you can add multiple classes separated by spaces, just like HTML.

### Can I use this for tracking attributes (like data-gtm)?

Yes! Enter any valid `data-*` attribute such as `data-gtm="click"` or `data-event
="cta"`.

### Will it work with page builders like Elementor or Astra?

Absolutely. It’s designed to be theme-agnostic and builder-compatible.

### Does it affect SEO or page speed?

No. It only modifies HTML attributes for menu items — no scripts or extra resources
are added.

### Can I safely uninstall it?

Yes. When uninstalled, it removes all associated custom meta keys from your database.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Menu Item Custom Attributes” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ Ponsiva . Pandian ](https://profiles.wordpress.org/ponsiva/)

[Translate “Menu Item Custom Attributes” into your language.](https://translate.wordpress.org/projects/wp-plugins/menu-item-custom-attributes)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/menu-item-custom-attributes/),
check out the [SVN repository](https://plugins.svn.wordpress.org/menu-item-custom-attributes/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/menu-item-custom-attributes/)
by [RSS](https://plugins.trac.wordpress.org/log/menu-item-custom-attributes/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.1

 * Added nonce verification and sanitization for plugin check compliance.
 * Added uninstall cleanup using `delete_post_meta_by_key()`.
 * Improved data attribute parsing and safety.
 * Updated code to meet WordPress coding standards.

#### 1.0

 * Initial release — added custom ID, class, and data attribute fields to menu items.

## Meta

 *  Version **1.2**
 *  Last updated **7 meses ago**
 *  Active installations **50+**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **6.8.5**
 *  PHP version ** 7.2 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/menu-item-custom-attributes/)
 * Tags
 * [css class](https://pe.wordpress.org/plugins/tags/css-class/)[custom attributes](https://pe.wordpress.org/plugins/tags/custom-attributes/)
   [id](https://pe.wordpress.org/plugins/tags/id/)[menu](https://pe.wordpress.org/plugins/tags/menu/)
   [navigation](https://pe.wordpress.org/plugins/tags/navigation/)
 *  [Advanced View](https://pe.wordpress.org/plugins/menu-item-custom-attributes/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/menu-item-custom-attributes/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/menu-item-custom-attributes/reviews/)

## Contributors

 *   [ Ponsiva . Pandian ](https://profiles.wordpress.org/ponsiva/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/menu-item-custom-attributes/)