Question:
https://twitter.com/bpmore/status/704532829242134530
Answer:
Just add the following in child theme’s functions.php:
This file contains 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
// Show breadcrumbs (if enabled in Genesis theme settings) only on full-width-content pages | |
add_action( 'genesis_before_content', 'sk_conditional_breadcrumbs' ); | |
function sk_conditional_breadcrumbs() { | |
// get the page layout | |
$site_layout = genesis_site_layout(); | |
// if the page uses full-width-content layout, abort. | |
if ( 'full-width-content' == $site_layout ) { | |
return; | |
} | |
// remove Breadcrumbs | |
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); | |
} |
Thank you for this.