Site logo

[Resolved] aria-controls validation error

Home Forums Support [Resolved] aria-controls validation error

Home Forums Support aria-controls validation error

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #177573
    Chad Biggs

    Hi Tom, I am using https://validator.w3.org/ to validate. Can you tell me why I am getting this validation error?

    http://cboysweb.com/

    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

    #177656
    Tom
    Lead Developer
    Lead Developer

    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

    #177676
    Chad Biggs

    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/&#8217; href=’http://cboysweb.com/wp-json/&#8217; />↩<link

    Do you have any idea what this is about?

    -Chad

    #177720
    Tom
    Lead Developer
    Lead Developer

    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.

    #177759
    Chad Biggs

    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

    #177830
    Tom
    Lead Developer
    Lead Developer

    Glad it’s working 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.