Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/**
* Prints the Breadcrumb in Storefront using the function by Yoast SEO.
*/
function storefront_yoast_breadcrumb() {
if ( function_exists( 'yoast_breadcrumb' ) && ! is_home() ) {
yoast_breadcrumb( '<nav class="breadcrumbs">','</nav>' );
}
}
add_action( 'storefront_content_top', 'storefront_yoast_breadcrumb' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment