30+
April 23, 2015
February 11, 2013
Adds missing classes for selected menu states. Classes added include:
current-page-parent and current_page_parentcurrent-page-ancestor and current_page_ancestorcurrent-menu-ancestorcurrent-menu-parentThe classes are added in the following scenarios:
Allows you to control which menu items should be selected (or deselected) when viewing certain pages of your site. You need to add classes to the menu items for this to work.
ecms-archive-{$post_type} – Select menu item when viewing a post type archive page.ecms-single-{$post_type} – Select menu item when viewing a single post type page.ecms-taxonomy-{$taxonomy} – Select menu item when viewing a taxonomy archive.ecms-taxonomy-{$taxonomy}-term-{$term} – Select menu item when viewing a taxonomy term archive.ecms-404 – Select menu item when viewing a 404 page.
ecms-no-archive-{$post_type} – Deselect menu item when viewing a post type archive page.
ecms-no-single-{$post_type} – Deselect menu item when viewing a single post type page.ecms-no-taxonomy-{$taxonomy} – Deselect menu item when viewing a taxonomy archive.ecms-no-taxonomy-{$taxonomy}-term-{$term} – Deselect menu item when viewing a taxonomy term archive.ecms-no-404 – Deselect menu item when viewing a 404 page.To install and configure this plugin…
If you are upgrading manually via FTP rather that through the WordPress automatic upgrade link, please de-activate and re-activate the plugin to ensure the plugin upgrades correctly.
Please log issues and bugs on the plugin’s GitHub page.
You can also submit suggested enhancements if you like.
If you can, please fork the code and submit a pull request via GitHub. If you’re not comfortable using Git, then please just submit it to the issues link above.
Fix issue where menu selected states were not inherited correctly for non-404 pages.
Added Menu Selector support for ‘ecms-404’ and ‘ecms-no-404’ classes.
Added Menu Selector class.
Add menus module and ‘extraclasses_menu_item_class’ filter for easier filtering of menu item classes.
Restructure include files for modules.
First release (beta).