Adding aria-current to presently selected page
-
I have a typical WP navigation menu (wp_nav_menu()) to where I want to add aria-current=”page” to the menu item (a/anchor) of the currently selected page, meaning if I’m on the About page, I want the About menu item to announce “link, current page” when it receives focus. How do I go about doing this without going hacky?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Adding aria-current to presently selected page’ is closed to new replies.