Site logo

Archived topic

ARIA IDs are not unique

2 replies · Started by Ravishankar on December 23, 2022

Viewing posts 1–3 of 3

I have updated your given code on the website.
I have followed the guide you provided.
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' );
}
});

But still the problem is not solved. So, please help.

My website url :- gyanitechinfo.com

Hi there,

i tested your site, and the only issue is this:

ARIA IDs are not unique

Failing Elements

body.post-template-default > nav#mobile-header > div.inside-navigation > div#mobile-menu
<div id="mobile-menu" class="main-nav">
Computer Make Money MS Excel MS Word WIKI
<div id="mobile-menu" class="main-nav">

The second element is because of the Sticky Navigation, the HTML from that element is only output if when the navigation is sticky, and its not visible or useable, its simply a placeholder.

You can either:

1. ignore it - as it is not an issue
2. switch of the Sticky Navigation.

This archived topic is closed to new replies.