Hide Category Breadcrumbs in Divi Breadcrumbs Module

|

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;
}

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.