Hide Category Breadcrumbs in Divi Breadcrumbs Module

Written by Dan Mossop

My Divi Breadcrumbs Module allows you to display breadcrumbs links on Divi site. These links are autogenerated and, on posts, include the category the post is in. If you're prefer not to display the category on breadcrumbs on single post pages, you can use the following PHP code:

add_filter('et_pb_dmb_breadcrumbs_category_crumbs', 'dbc_remove_breadcrumbs_on_posts');

function dbc_remove_breadcrumbs_on_posts($crumbs) {
	if (is_single()) {
		return array();
	}
	return $crumbs;
}

Discover Divi Breadcrumbs Module

Improve your site navigation and SEO with our Divi Breadcrumbs Module. It adds a breadcrumbs module to Divi, Extra, and the Divi Builder. It is SEO-optimized with semantic markup and flexible style options to get your breadcrumbs looking the way you want. Optionally hide categories from breadcrumb trails easily!

About Dan Mossop

Dan is a Scottish-born web developer, now living in Brisbane with his wife and son. He has been sharing tips and helping users with Divi since 2014. He created Divi Booster, the first Divi plugin, and continues to develop it along with 20+ other Divi plugins. Dan has a PhD in Computer Science, a background in web security and likes a lot of stuff, 

0 Comments

Submit a Comment

Comments are manually moderated and approved at the time they are answered. A preview is shown while pending but may disappear if your are cookies cleared - don't worry though, the comment is still in the queue.

Your email address will not be published. Required fields are marked *.

We may earn a commission when you visit links on our website.