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;
}
Related Post: Adding PHP to the Divi Theme
0 Comments