Disable Genesis breadcrumbs on top level pages

/**
 * Disable breadcrumbs on top level pages
 *
 */
function be_disable_breadcrumbs( $disable ) {
	if( is_page() && empty( wp_get_post_parent_id( get_the_ID() ) ) ) {
		$disable = true;
	}
	return $disable;
}
add_filter( 'genesis_do_breadcrumbs', 'be_disable_breadcrumbs' );
Bill Erickson

Bill Erickson is the co-founder and lead developer at CultivateWP, a WordPress agency focusing on high performance sites for web publishers.

About Me
Ready to upgrade your website?

I build custom WordPress websites that look great and are easy to manage.

Let's Talk