Home / Admin / Remove the link from the current breadcrumb item on a page
Duplicate Snippet

Embed Snippet on Your Site

Remove the link from the current breadcrumb item on a page

This snippet removes the link from the current breadcrumb item on a page.

<10
Code Preview
php
<?php
add_filter( 'aioseo_breadcrumbs_link_current_item', 'aioseo_breadcrumbs_link_current_item', 10 );
function aioseo_breadcrumbs_link_current_item( $linkCurrentItem ) {
	if ( is_singular( 'page' ) ) {
		$linkCurrentItem = false;
	}
	return $linkCurrentItem;
}

Comments

Add a Comment