===  AddonLogic Menu Item Badge ===
Contributors: snehalpancholi
Tags: menu, badge, label, navigation, highlight
Requires at least: 6.0
Tested up to: 6.7
Stable tag: 1.0.0
Requires PHP: 8.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add customizable badge labels (New, Hot, Sale, or any text) to WordPress navigation menu items with full color control.

== Description ==

AddonLogic Menu Item Badge lets you attach a small pill-shaped badge to any item in any WordPress navigation menu directly from the Appearance → Menus screen. No shortcodes or templates needed — just open a menu item, type the badge text, choose the background and text colors, pick the position (inline or superscript), and save.

**Features:**

* Works with any theme and any registered menu.
* Inline badge appears right after the menu item text.
* Superscript badge floats above the text like a notification counter.
* Full color pickers for badge background and text color.
* Clean, semantic HTML — a single `<span>` appended inside the `<a>` tag.
* No jQuery dependency; CSS-only on the frontend.
* Lightweight — less than 5 KB total assets.

== Installation ==

1. Upload the `menu-item-badge` folder to `/wp-content/plugins/`.
2. Activate the plugin from **Plugins → Installed Plugins**.
3. Go to **Appearance → Menus**.
4. Expand any menu item and scroll to the **Badge Text** field.
5. Enter the label text, pick colors, choose position, and save the menu.

== Changelog ==

= 1.0.0 =
* Initial release.

== FAQ ==

= Will this work with my theme? =
Yes — the badge is injected via the `walker_nav_menu_start_el` filter, which is compatible with all themes that use the standard `wp_nav_menu()` function.

= Can I style the badge with my own CSS? =
Yes — target `.addlc-mib-badge` in your theme's CSS. The background and text color set in the admin are applied as inline styles, so use `!important` if you need to override them.

= Does clearing the text remove the badge? =
Yes — saving a menu item with an empty badge text deletes all badge meta, so nothing is output on the frontend.
