Site logo

Archived topic

aria id not unique

7 replies · Started by Ashish on April 25, 2021

Viewing posts 1–8 of 8

Hi,
Im doing some checks to improve my website performance. Checked it on web.dev and I get this error.
How do I resolve this?

[id] attributes on active, focusable elements are not unique ARIA IDs are not unique

Link in the private section.

Hi there,

Try adding this PHP snippet:

add_action( 'wp', function() {
    remove_action( 'wp_footer', 'generate_clone_sidebar_navigation' );
} );

Let us know if that fixes it or not :)

Hi Tom,

Tried the above fix and re-tested it. It does not seem to work as web.dev still shows "ARIA IDs are not unique".

Any chance you can disable any caching plugins/Cloudflare caching so I can view the source more clearly?

Thanks!

Hi Tom,

Ive disabled the caching and updated the Named Servers.

You can have a look.

Thanks!

I'm not seeing any duplicate IDs now. For example, you can run your page through an HTML validator: https://validator.w3.org/#validate_by_uri

There are a handful of issues that seem to be from other plugins, but there are no duplicate IDs being reported.

Hi Tom,

Yes, The issue of aria id is solved but now the CLS has increased from 0 to 0.509 on web.dev.

Thanks!
Ashish

That looks like it's being caused by the Jump to recipe button. Almost like it's getting its styling too late.

This archived topic is closed to new replies.