Archived topic
aria-controls validation error
5 replies · Started by Chad Biggs on March 7, 2016
Hi Tom, I am using https://validator.w3.org/ to validate. Can you tell me why I am getting this validation error?
Error: The aria-controls attribute must point to an element in the same document. From line 95, column 7; to line 95, column 85 t">↩ <button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false">↩
Thank you, -Chad
If you set up a menu and set the theme location to primary, GP will add the ID which will remove that error.
https://generatepress.com/knowledgebase/using-menus/#set-theme-location
Thank you for your reply Tom. As usual, you were correct. Creating a primary menu did the trick to remove the validation error but at the same time it created another error...
Bad value https://api.w.org/ for attribute rel on element link: The string https://api.w.org/ is not a registered keyword.
</script>↩<link rel='https://api.w.org/' href='http://cboysweb.com/wp-json/' />↩<link
Do you have any idea what this is about?
-Chad
Hmm, that's not GP's doing.
It could be a WP thing, I'm not sure.
I just validated your website and it found 0 errors.
Thanks for looking Tom. I don't see the error there now either. That is weird... I wish all my issues would go away like that when I sleep. Ha. Thanks again, -Chad
Glad it's working :)
