[WordPress] 外掛分享: Menu Item Custom Attributes

首頁外掛目錄 › Menu Item Custom Attributes
WordPress 外掛 Menu Item Custom Attributes 的封面圖片
30+
安裝啟用
尚無評分
129 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.2+ v1.2 上架:2025-11-07

內容簡介

總結: "Menu Item Custom Attributes 外掛讓您可以直接從管理介面將 HTML 屬性(例如 id、class 和 data-*)添加到 WordPress 選單項目。對於希望對選單元素進行精細控制以進行樣式設計、追蹤或自定義腳本的開發人員和設計師來說,此外掛是非常完美的,且無需編輯主題代碼。"

問題與答案:
1. 這個外掛的主要功能是什麼?
- 答:Menu Item Custom Attributes 外掛允許您將 HTML 屬性直接添加到 WordPress 選單項目,包括 id、class 和 data-*。

2. 適合使用這個外掛的人群是誰?
- 答:這個外掛主要適合開發人員和設計師,他們可以在不編輯主題代碼的情況下對選單元素進行精細控制,用於樣式設計、追蹤或自定義腳本。

3. 這個外掛的關鍵特點有哪些?
- 答:(1) 將獨特的 HTML ID、CSS Class 或自定義 Data 屬性添加到個別選單項目。(2) 直接在原生外觀→選單畫面中操作。(3) 與所有主題和頁面建構器(Elementor、Astra、Divi 等)兼容。(4) 輕量且性能優化。(5) 通過淨化和唯一性檢查來確保安全性。

4. 這個外掛可以用來做什麼?
- 答:您可以使用它應用特殊樣式、附加JavaScript 操作,或與 Google Tag Manager 等分析工具整合。

5. 如果有任何功能請求、問題或反饋,應該去哪裡?
- 答:請訪問支援論壇。

6. 這個外掛的授權是什麼?
- 答:這個外掛是自由軟體,您可以依據自由軟體基金會發布的 GNU 通用公共授權條款進行再分發或修改。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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 — 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

延伸相關外掛

文章
Filter
Apply Filters
Mastodon