Hello,
I would like to remove the category in the breadcrumb of the blog in such way that the breadcrum is blog>>post_title. Does anybody know how to do it?
Thanks in advance!
Hi,
In theme directory please go to Enfold > Framework > Php and open Class-breadcrumb.php file. Find following code in lines between 281-292
if('post' == $post_type)
{
$category = get_the_category();
$ID = $category[0]->cat_ID;
$parents = get_category_parents($ID, TRUE, '$$$', FALSE );
$parents = explode("$$$", $parents);
foreach ($parents as $parent_item)
{
if($parent_item) $trail[] = $parent_item;
}
}
And comment it out
/* if('post' == $post_type)
{
$category = get_the_category();
$ID = $category[0]->cat_ID;
$parents = get_category_parents($ID, TRUE, '$$$', FALSE );
$parents = explode("$$$", $parents);
foreach ($parents as $parent_item)
{
if($parent_item) $trail[] = $parent_item;
}
} */
Regards,
Yigit
Thank you Yigit!