[Resolved] Add aria-label attributes to nav elements

Home Forums Support Add aria-label attributes to nav elements

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1353699
    Matt

    Hi,

    I’d like to add an aria-label attribute to differentiate my nav landmark regions.

    For example, I’d like to add aria-label="Main Menu" to the primary site navigation, like this:

    <nav id="site-navigation" class="main-navigation" itemtype="https://schema.org/SiteNavigationElement" itemscope="" aria-label="Main Menu">

    What’s the best way of doing that? Some sort of filter?

    #1354184
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    As of right now, it’s not possible, but it will be possible in GP 2.5.0 which will be entering public testing within the next couple of weeks.

    #1354307
    Matt

    Good to know, thanks Tom. I’ll keep an eye out for that.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.