Take Breadcrumbs off homepage

  1. How can I remove the breadcrumbs from a custom page template that’s set as the home page? I’d like them on all other pages.

    Site is http://bit.ly/q42eRA

  2. I didn’t understand … but if you just want to remove the breadcrumb from front-page, maybe you could try:

    add_filter( 'breadcrumb_trail_args', 'show_breadcrumb_trail' );
    function show_breadcrumb_trail( $args )
    {
    $args['front_page'] = false;
    return $args;
    }

  3. That worked, but only after I removed all the other default stuff about loading the theme prefix and the example actions and filters. Once I took that out, the actions and filters I put in worked as they should.

  4. I found the file that controls the breadcrumb settings where you can switch this without using the functions.php file.

    To take the breadcrumbs off the home page, you can go to library>extensions>breadcrumb-trail.php and find line 46:
    'front_page' => true,
    change the true to false and that’s it.

    The problem I’m having is that I’m using a child theme and I created a new breadcrumb-trail.php file in my child theme. I set the “true” to “false” but it doesn’t remove the breadcrumbs on the homepage. It only works when I modify the parent theme file.

    Anybody know how to use the child theme to make this change?

  5. You shouldn’t edit anything in the library folder. If Thiago solution doesn’t work, simply copy the template you want to modify from the parent theme to the child theme folder and remove the breadcrumb part.

You must be logged in to reply to this topic.