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 a freelance WordPress developer and a contributing developer to the Genesis framework. For the past 14 years he has worked with attorneys, publishers, corporations, and non-profits, building custom websites tailored to their needs and goals.

Ready to upgrade your website?

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

Let's Talk