Site logo

Archived topic

Failing Elements

3 replies · Started by inoruhana on November 18, 2022

Viewing posts 1–4 of 4

I would like to solve the issue of “[aria-*] attributes do not match their roles” which is shown in the PageSpeed Insights as the following Screenshot: https://ibb.co/SQh6rnF

My site is: https://inoruhana.net/

Hi there,

you have this CSS on your site:


.entry-title, .main-nav ul li a {
    display:none
}

That CSS is hiding the entry-title which means the entry-header is empty which breaks ARIA rules.
Do not use CSS to hide the title.
Instead use a Layout Element to Disable the Content Title:

https://docs.generatepress.com/article/layout-element-overview/

I got it.
Thanks David.

Glad to be of help

This archived topic is closed to new replies.