Improve breadcrumb accessibility

#32503
  • Resolved Simon
    Rank Math free

    Hi,
    to improve accessibility you should change the default breadcrumbs like written here:
    https://www.w3.org/TR/wai-aria-practices-1.1/examples/breadcrumb/index.html

    Example could look like in this filter:

    
    add_filter(
    	'rank_math/frontend/breadcrumb/args',
    	function( $args ) {
    		$args = array(
    			'delimiter'   => ' / ',
    			'wrap_before' => '<nav class="breadcrumb" aria-label="Breadcrumb"><ol class="breadcrumb__list">',
    			'wrap_after'  => '</ol></nav>',
    			'before'      => '<li class="breadcrumb__list-item">',
    			'after'       => '</li>',
    		);
    		return $args;
    	}
    );
    
Viewing 1 replies (of 1 total)
  • Todd
    Rank Math free

    Hi Simon,

    Thanks a lot for your suggestion.

    It has been duly noted. We will see what we can do about that.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Improve breadcrumb accessibility’ is closed to new replies.