Ingeni Custom Nav Menu Fields
Custom attributes for Wordpress menu items
by Bruce McKinnon · github.com/brucemckinnon/ingenicustommenufields · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/brucemckinnon/ingenicustommenufields/archive/refs/heads/master.zipReadme
=== Ingeni Custom Nav Menu Fields ===
Contributors: Bruce McKinnon and wp-qa.com Tags: accessibility, navigation, aria Requires at least: 6 Tested up to: 6.0.1 Stable tag: 2022.01
== Description ==
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.