MAJpage Menu Class Extender
Adds classes to first, last, parent, even and odd elements of wp_page_menu and wp_nav_menu.
Maintenance 22/1002306d since update
Active installs
40
Downloads
6,436
Reviews
1
Age
14.4y
Tagsmenutagsclasseswp_nav_menuwp_page_menu
Plugin info
Total downloads: 6,436
Active installs: 40
Total reviews: 1
Average rating: 5
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 9/8/2019 (2306 days ago)
Added to WordPress: 8/12/2011 (14 years old)
Minimum WordPress version: 3.0.0
Tested up to WordPress version: 5.2.23
Minimum PHP version: f
Maintenance & Compatibility
Maintenance score
Possibly abandoned • Last updated 2306 days ago • 1 reviews
22/100
Is MAJpage Menu Class Extender abandoned?
Possibly abandoned (last update 2306 days ago).
Compatibility
Requires WordPress: 3.0.0
Tested up to: 5.2.23
Requires PHP: f
Similar & Alternatives
Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.
No similar plugins found yet.
Description
This simple plugin was written to add classes to first, last, parent, even and odd elements of wp_page_menu and 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
- “first-menu-item” to every first child of
- or
- “last-menu-item” to every last child of
- or
- “parent-menu-item” to every child of
- or
- or
- “odd-menu-item” to every odd child of
- or
-
“even-menu-item” to every even child of
- or
Installation
- Upload “majpage-menu-class-extender.php” to the “/wp-content/plugins/” directory.
- Activate the plugin through the “Plugins” menu in WordPress.
- That’s all – plugin is fully operational and adds specified classes in every wp_page_menu and wp_nav_menu element with menu defined in “Menus” tab.
Frequently Asked Questions
No FAQ available
Review feed
No reviews available
Screenshots
No screenshots available
Changelog
1.6
- Fix missed variable declarations.
1.5
- Replace deprecated function.
1.4
- Plugin functions changed into MAJpageMCE class static methods.
- wp_page_menu container support added thanks to Dinesh Kesarwani’s notice.
- Cause of the strict standards warning corrected thanks to flynsarmy’s notice.
1.3
- HTML5 <menu> tag support added thanks to Tomas Kapler’s notice.
- wp_nav_menu container tag support included.
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.