Site logo

[Resolved] Accessibility Issue

Home Forums Support [Resolved] Accessibility Issue

Home Forums Support Accessibility Issue

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2476226
    Scott

    I’m getting this from pageSpeed Insights. It a fairly substantial hit to the score.

    [aria-*] attributes do not match their roles

    Each ARIA role supports a specific subset of aria-* attributes. Mismatching these invalidates the aria-* attributes.

    Failing Elements
    Entry meta
    <footer class=”entry-meta” aria-label=”Entry meta”>

    I can’t figure this out except to say it’s only on blog posts.

    #2476332
    Fernando
    Customer Support

    Hi Scott,

    Can you try adding this PHP Snippet?:

    add_action( 'wp', function() {
      remove_action( 'generate_after_entry_content', 'generate_footer_meta' );
    } );

    Adding PHP: https://docs.generatepress.com/article/adding-php/#code-snippets

    #2476400
    Scott

    That appears to have fixed it. But what was/is the issue if I might ask?

    #2476407
    Fernando
    Customer Support

    Are you showing the categories and tags in single posts in Appearance > Customize > Layout > Blog? If some posts don’t have either a category or tag and you have this enabled, that issue occurs.

    #2476409
    Scott

    I have show category and tag unchecked in the customizer under layout>blog>single

    So that’s good to know!

    thank you

    #2476424
    Fernando
    Customer Support

    You’re welcome, Scott!

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