Site logo

Archived topic

ARIA IDs are not unique

10 replies · Started by Ravishankar on December 19, 2022

Viewing posts 1–11 of 11

I got a error from pageinsight. Like (ARIA IDs are not unique) on my website - gyanitechinfo.com So Please fix this issue.

Hi there,

the only ARIA warning i see is this: [aria-*] attributes do not match their roles

And that happens if you output no footer meta on your archives.

Add this PHP Snippet to your site to remove the element and that warning.


add_action( 'wp', function() {
    if(is_home() || is_archive() || is_search()){
        remove_action( 'generate_after_entry_content', 'generate_footer_meta' );
    }
});

Where I have to add this code?

Into the function.php of your child theme. Or you have to install a Plugin which allows inserting Code-Snippets.

Hi Ravishankar,

Can you open a new topic and share the link to the site in question there as well?

Hope to hear from you soon.

I don't think so, Because this problem is related to this question. So I think that if I create a new topic then again follow the all steps and also I have to share the all information, that is already here

Though the question is the same, the issue came out differently here as explained by David: https://generatepress.com/forums/topic/aria-ids-are-not-unique-3/#post-2466821\

As opposed to "ARIA IDs are not unique" it's actually "[aria-*] attributes do not match their roles".

A new topic for a different issue that would likely need a different solution would be preferential for our Support team. Hope you understand.

I have created a new topic, but there is no response?

I have replied, to the other topic.

This archived topic is closed to new replies.