Aria Labels on Navigation

Dave Nelson asked on April 25, 2018 21:00

I would like to add aria-label="descriptive text" to each link in my navigation.

What ways are available to add a field to every page of my website for the content of that Aria Label?

Correct Answer

Rui Wang answered on April 25, 2018 21:36

You can add a field (AriaLabel) to the page type, then in your transformation for the navigation, get the value using macro {% AriaLabel %}

0 votesVote for this answer Unmark Correct answer

Recent Answers


Dave Nelson answered on April 25, 2018 22:04

Thank you Rui, that was very easy

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.