Hi,
To clarify: do you want to add this attribute on single post’s post nav buttons (prev/next)?
If so, here’s a PHP snippet for it.
add_filter( 'generate_post_navigation_args', function( $args ) {
if ( is_single() ) {
$args['previous_format'] = '<div class="nav-previous">' . generate_get_svg_icon( 'arrow-left' ) . '<span class="prev" title="' . esc_attr__( 'Previous', 'generatepress' ) . '">%link</span></div>';
$args['next_format'] = '<div class="nav-next">' . generate_get_svg_icon( 'arrow-right' ) . '<span class="next" title="' . esc_attr__( 'Next', 'generatepress' ) . '">%link</span></div>';
}
return $args;
} );
Add your aria-label="blog"
to the $arg['previous_format']
& $args['next_format']
markup.