Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #28769

    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!

    #138577

    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

    #138578

    Thank you Yigit!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Removing category in the blog´s breadcrumb’ is closed to new replies.