Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #310856

    Hey,

    I’m having a very hard time to remove the ‘home’ breadcrumb on the forum (bbpress). Is there a way that i can delete it? Or make it link to the forum and not to the homepage?

    Pieter

    #310875

    Hi Pieter!

    Please add following code to Functions.php file in Appearance > Editor

    add_filter('avia_breadcrumbs_trail', 'avia_change_breadcrumb', 10, 1);
    function avia_change_breadcrumb($trail) {
    if(is_bbpress())
    {	
    	$home 		= '';
    	$last 		= array_pop($trail);
    	unset($trail);
    	
    	$trail[0] = $home;
    	$trail[]  = $last;
    }
    return $trail;
    }

    and then add following code to Quick CSS in Enfold theme options under General Styling tab

    .bbpress .breadcrumb-trail span.sep:nth-child(3) {
    display: none;
    }

    Best regards,
    Yigit

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.