How to add aria-label to the current page on breadcrumb
I want to add aria-label specifically on the current page on breadcrumbs. For instance, Help Center -> Getting started.
Currently Help Center shows aria-label as "breadcrumb" but Getting Started has aria-label as "breadcrumb" also. I want to differentiate or should I say show the value of the current page to aria-label such as aria-label= 'Getting Started'.
- can I use aria-label="page" or aria-label="location" ? where should I put that on the code since all I see is {{breadcrumbs}} on the code.
You're help is greatly appreciated.
-
As I have checked on the latest version of the Copenhagen theme, the breadcrumbs have a "title" attribute listing the name of the page you are on I am attaching the screenshot for the same.
Can you please, confirm which theme you are using a Copenhagen one or a Custom theme if it's possible to provide the URL of your help center where you need to get this done so that I will dig in and come up with a solution?
Thank You
Pulkit
Team Diziana
Por favor, entrar para comentar.
1 Comentários