Archived topic
ARIA IDs are not unique
5 replies · Started by cigilovic on February 10, 2022
Hello there,
I have been getting these ARIA IDs are not unique error in Lighthouse.
I have checked the support forum here. I disabled sticky navigation, I use only the off-canvas panel and set my primary navigation mobile menu breakpoint to 10000.
In Lighthouse, both mobile and desktop give me the identical result and the same error.
Please see the private information for the URL and screenshot.
Can you please help me with this issue?
Many thanks,
Osman
Hi Osman,
As you are using mobile header on desktop, can you try disable the primary navigation?
You can use a layout element:https://docs.generatepress.com/article/layout-element-overview/#disable-element
Check the primary navigation option, set entire site as location.
Make sure the Disable elements module is enabled at appearance > GeneratePress.
Let me know if that works!
Hi Ying,
Thanks for your response. Yes, I was using mobile header.
I enabled disable elements, added an element as layout and disabled primary navigation for the entire site. But then my hamburger menu disappears.
I'm a bit confused about where I went wrong.
Hum.. in that case can you try this:
1. Remove the layout element, deactivate the disable element module.
2. Go to customizer > layout > header, uncheck the use navigation as header option.
3. Go to customizer > layout > primary navigation, set its Navigation location toNo navigation.
Let me know if this works :)
Hello Ying,
Thank you very much! This solution worked for me, don't get this warning anymore! :)
Great! Glad it worked :)