Support » Accessibility » 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?

    • This topic was modified 4 months, 2 weeks ago by DDeacon.
    • This topic was modified 4 months, 2 weeks ago by DDeacon.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.