Title: Menu Item Custom Attributes
Author: Ponsiva . Pandian
Published: <strong>8. November 2025</strong>
Last modified: 19. Oktober 2026

---

Plugins suchen

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

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

# Menu Item Custom Attributes

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

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

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

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

## Beschreibung

**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://de.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.

## Rezensionen

Zu diesem Plugin liegen noch keine Rezensionen vor.

## Mitwirkende und Entwickler

„Menu Item Custom Attributes“ ist Open-Source-Software. Folgende Menschen haben 
an diesem Plugin mitgewirkt:

Mitwirkende

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

[Übersetze „Menu Item Custom Attributes“ in deine Sprache.](https://translate.wordpress.org/projects/wp-plugins/menu-item-custom-attributes)

### Interessiert an der Entwicklung?

[Durchstöbere den Code](https://plugins.trac.wordpress.org/browser/menu-item-custom-attributes/),
sieh dir das [SVN-Repository](https://plugins.svn.wordpress.org/menu-item-custom-attributes/)
an oder abonniere das [Entwicklungsprotokoll](https://plugins.trac.wordpress.org/log/menu-item-custom-attributes/)
per [RSS](https://plugins.trac.wordpress.org/log/menu-item-custom-attributes/?limit=100&mode=stop_on_copy&format=rss).

## Änderungsprotokoll

#### 1.3

 * Tested and verified compatibility with WordPress 7.1, 7.0, 6.7, 6.6, and 6.5.
 * Updated minimum PHP requirement to 7.4 for better security and performance.
 * Added Domain Path to plugin header for better internationalization support.
 * Full compatibility audit and quality assurance completed.
 * Code review and standards compliance.

#### 1.2

 * Added sanitization improvements and updated uninstall process.
 * Enhanced compatibility with WordPress 6.8.

#### 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.3**
 *  Zuletzt aktualisiert **vor 4 Wochen**
 *  Aktive Installationen **60+**
 *  WordPress-Version ** 5.0 oder höher **
 *  Getestet bis **7.1.4**
 *  PHP-Version ** 7.4 oder höher **
 *  Sprache
 * [English (US)](https://wordpress.org/plugins/menu-item-custom-attributes/)
 * Schlagwörter
 * [css class](https://de.wordpress.org/plugins/tags/css-class/)[custom attributes](https://de.wordpress.org/plugins/tags/custom-attributes/)
   [id](https://de.wordpress.org/plugins/tags/id/)[menu](https://de.wordpress.org/plugins/tags/menu/)
   [navigation](https://de.wordpress.org/plugins/tags/navigation/)
 *  [Erweiterte Ansicht](https://de.wordpress.org/plugins/menu-item-custom-attributes/advanced/)

## Bewertungen

Es wurden noch keine Rezensionen eingereicht.

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

[Alle Rezensionen anzeigen](https://wordpress.org/support/plugin/menu-item-custom-attributes/reviews/)

## Mitwirkende

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

## Support

Möchtest du etwas mitteilen? Brauchst du Unterstützung?

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