=== MAJpage Menu Class Extender === Contributors: duzymaju Tags: menu, wp_nav_menu, classes, tags, first, last, parent, even, odd, :first-child, :last-child, :nth-child Requires at least: 3.0.0 Tested up to: 3.2.1 Stable tag: 1.2 Adds classes to first, last, parent, even and odd elements of wp_nav_menu. == Description == This simple plugin was written to add classes to first, last, parent, even and odd elements of wp_nav_menu to support recognizing it in older browsers without :first-child, :last-child and :nth-child supporting. Plugin adds the following classes to menu <li> tags: * "first-menu-item" to every first child of <ul> tag, * "last-menu-item" to every last child of <ul> tag, * "parent-menu-item" to every child of <ul> tag that has another <ul> tag inside (a parent to another menu level), * "odd-menu-item" to every odd child of <ul> tag, including first and/or last child, * "even-menu-item" to every even child of <ul> tag, including first and/or last child. Above classes are added separately to each menu level. Plugin use SimpleXML extension and requires PHP 5 or higher. Menu should have valid XHTML code. == Installation == 1. Upload "majpage-menu-class-extender.php" to the "/wp-content/plugins/" directory. 2. Activate the plugin through the "Plugins" menu in WordPress. 3. That's all - plugin is fully operational and adds specified classes in every wp_nav_menu element. == Changelog == = 1.2 = * Bug fixed with correct working in case of wp_nav_menu container absence. * "parent-menu-item" class added. = 1.1 = * Bug fixed with HTML special chars existence. * Improved menu list searching inside a container. = 1.0 = * First version of plugin. == Upgrade Notice == = 1.2 = Changes were made due to instability in case of menu container absence. = 1.1 = Changes were made due to instability in case of HTML special chars existence. = 1.0 = This is the first version of plugin.