Site logo

Archived topic

Accessibility PageSpeed Insights homepage blog

6 replies · Started by _blank on October 30, 2022

Viewing posts 1–7 of 7

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

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.

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;
} );

Hello Tom,

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

Yes, this will be fixed in 3.3.0 :)

Great! Thanks Tom 🙂

No problem!

This archived topic is closed to new replies.