DEV Community

Discussion on: a11y issues on WordPress - google lighthouse can't detect <label></label> on the form on the hero section

Collapse
mpuckett profile image
Michael Puckett

Can you add an aria-label="My label" ?

Collapse
highcenburg profile image
Vicente G. Reyes Author

I'm not sure about that but would that be

...
'email_name_aria_label' => 'Enter your name...',
'email_email_aria_label' => 'Enter your email...',
...

this way?

Collapse
mpuckett profile image
Michael Puckett

Iā€™m not familiar with the Wordpress plugin. You may need to add it on page load with JavaScript