brooklyndesignstudio

Remove Category from Divi Breadcrumbs

Apr 28th, 2020
322
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*******************************************************************
  2. *********** [ REMOVE CATEGORY FROM DIVI BREADCRUMBS ] **************/
  3.  
  4. add_filter('et_pb_dmb_breadcrumbs_category_crumbs', 'dbc_remove_breadcrumbs_on_posts');
  5.  
  6. function dbc_remove_breadcrumbs_on_posts($crumbs) {
  7.     if (is_single()) {
  8.         return array();
  9.     }
  10.     return $crumbs;
  11. }
RAW Paste Data