چۈشەندۈرۈش
Menu Item Badges adds two simple fields to every menu item in Appearance Menus:
- Badge (Text) – e.g. NEU, AKTION, WM 2026
- Badge Color (optional) – set a custom hex color like #e74c3c
Badges are rendered as a clean pill-shaped label right next to the menu item title on the frontend.
Perfect for seasonal campaigns, promotions, and important navigation entries (e.g. “Public Viewing Technik mieten” “WM 2026”).
No theme editing required.
Usage
- Go to Appearance Menus (wp-admin/nav-menus.php)
- Expand the desired menu item.
- Set:
- Badge (Text): e.g.
WM 2026 - Badge Color (optional): e.g.
#e74c3c
- Badge (Text): e.g.
- Save the menu.
To remove a badge, simply clear the Badge (Text) field and save.
ئورنىتىش
- Download the plugin ZIP.
- Go to Plugins Add New Upload Plugin.
- Upload the ZIP file and click Install Now.
- Click Activate.
Manual install:
1. Upload the folder to /wp-content/plugins/menu-item-badges-admin-fields/
2. Activate the plugin via Plugins in WordPress.
FAQ
-
No. A badge is only shown for menu items where you set a Badge (Text).
-
Does it work with my theme?
-
It works with any theme that uses WordPress’ native menu output (
wp_nav_menu()), which is most themes.
If your theme uses a custom header builder that does not use the native walker, the badge may not appear. -
Can I style the badge?
-
Yes. The badge uses the CSS class
.mib-badge.
You can override styling in Appearance Customize Additional CSS.Example:
.mib-badge { font-weight: 700; } -
Can I set custom colors?
-
Yes, via the Badge Color field using a hex value like
#2ecc71or#e74c3c.
باھالاشلار
بۇ قىستۇرمىغا تېخى باھا يېزىلمىدى.
تۆھپىكار ۋە ئىجادكار
«Menu Item Badges (Admin Fields)» كودى ئوچۇق يۇمشاق دېتال. تۆۋەندىكى كىشىلەر بۇ قىستۇرمىغا تۆھپە قوشقان.
تۆھپىكار«Menu Item Badges (Admin Fields)» نى تىلىڭىزغا تەرجىمە قىلىڭ
ئىجادىيەتكە قىزىقامسىز؟
كودقا كۆز يۈگۈرتۈپ، SVN خەزىنە تەكشۈرۈپ ياكى RSSئارقىلىق ئىجادىيەت خاتىرىسىگە مۇشتەرى بولغىلى بولىدۇ.
ئۆزگىرىش خاتىرىسى
1.0.0
- Initial release: badge text + optional color per menu item
- Frontend badge rendering with clean default styling