This snippet will remove BredcrumbList piece from Yoast SEO jsod-ld (“yoast-schema-graph”) from your homepage:

add_filter( 'wpseo_schema_graph_pieces', 'remove_breadcrumbs_from_schema_frontpage_only', 11, 2 );
function remove_breadcrumbs_from_schema_frontpage_only( $pieces, $context ) {
	if (is_front_page())
		return \array_filter( $pieces, function( $piece ) {
			return ! $piece instanceof \Yoast\WP\SEO\Generators\Schema\Breadcrumb;
		} );
	else { return $pieces; }



How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?