[Resolved] Accessibility PageSpeed Insights homepage blog

Home Forums Support [Resolved] Accessibility PageSpeed Insights homepage blog

Home Forums Support Accessibility PageSpeed Insights homepage blog

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #2394291
    Olivier

    Hello,

    There is an accessibility concern on blog home pages reported by PageSpeed Insights.

    The problem is present on several homepages of blogs built with GeneratePress including Brian’s blog for example: woorkup

    PageSpeed Insights

    #2394567
    Tom
    Lead Developer
    Lead Developer

    Strange, it looks like it doesn’t like the aria-label on the <footer> element. However, we need to be able to differentiate different kinds of footers on the page (post footers like entry meta vs the site footer). I’ll look into what the proper usage is here.

    #2405415
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    We found the issue here.

    The bug only happens when you’ve disabled all post meta items on your archives.

    For now, you can fix this by using this function:

    add_filter( 'generate_footer_entry_meta_items', function( $items ) {
    	if ( ! is_single() ) {
    		$items = array_diff( $items, [ 'post-navigation'] );
    	}
    	
    	return $items;
    } );
    #2410689
    Olivier

    Hello Tom,

    Thank you! Do you think this will be fixed by default in future versions?

    #2410702
    Tom
    Lead Developer
    Lead Developer

    Yes, this will be fixed in 3.3.0 ๐Ÿ™‚

    #2411590
    Olivier

    Great! Thanks Tom ๐Ÿ™‚

    #2412063
    Tom
    Lead Developer
    Lead Developer

    No problem!

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