Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/brucemckinnon/ingenicustommenufields/archive/refs/heads/master.zipDescription
Provides custom attributes for Wordpress nav menu items, primarily for adding accessibility aria labels.
Installation
-
Upload to the '/wp-content/plugins/' directory.
-
Activate the plugin through the 'Plugins' menu in WordPress.
-
Modify the menu items in the Wordpress Appearance > Menus section.
Frequently Asked Questions
Which aria attributes are supported?
V2022.01 supports aria-label and aria-hidden
How do I set the aria attributes?
Modify the menu item properties in the Wordpress Appearance > Menus section.
How are the aria attributes added to my theme's navigation menus?
The plugin uses the wp_edit_nav_menu_walker() hook to bypass the standard menu walker, allowing the custom attributes to be added to the HTML of individual menu items.
Changelog
2022.01 - Initial release.