Site logo

[Support request] aria attributes do not match their roles

Home Forums Support [Support request] aria attributes do not match their roles

Home Forums Support aria attributes do not match their roles

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2525153
    Bella

    Does anyone know how to easily fix this? I can’t seem to find a clear answer on Google

    #2525206
    Ying
    Staff
    Customer Support

    Hi Bella,

    For questions like this, we would have to see the detailed error notification and the HTML elements it refers to.

    Does the error notification point out which element is having the issue?

    #2528587
    Bella

    Hi Ying,

    It says this 10x

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

    #2528732
    David
    Staff
    Customer Support

    Hi there,

    this can occur if there is no footer meta being displayed on a site.
    can you share a link to the site with the issue ? I can then provide the correct fix.

    #2530219
    Bella

    Thanks David. Here it is: https://doggyandpooch.com/

    #2530243
    David
    Staff
    Customer Support

    Try adding this PHP Snippet to your site:

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

    Note that this removes the Footer Meta from the archive pages, so if you ever need to display that meta ( which is set in the Customizer > Layout > Blog ) eg. Category terms, then that snippet would need removing.

    #2542554
    Bella

    Thank you so much David! That worked 🙂

    #2542915
    David
    Staff
    Customer Support

    Glad to hear that!

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