Created
December 16, 2016 12:52
-
-
Save SirDarcanos/723cd5d65b19a0e9a78bb1e4341c1169 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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