WordPress.org

Support

Support » Themes and Templates » Removing Breadcrumbs?

Removing Breadcrumbs?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Sami Keijonen

    @samikeijonen

    Member

    To remove it from everywhere, put this in your child theme functions.php inside setup function.

    add_filter( 'breadcrumb_trail', '__return false' );
    Theme Author Sami Keijonen

    @samikeijonen

    Member

    And if you want to remove it only in singular pages and singular post, you need to put this in your child theme functions.php inside setup function.

    add_filter( 'breadcrumb_trail', 'my_disable_breadcrumbs' );

    And this after the setup function.

    function my_disable_breadcrumbs( $trail ) {
    
    	if ( is_singular( array( 'post', 'page' ) ) )
    		$trail = false;
    
    	return $trail;
    }

    Naturally you might need to add some extra styles in child theme style.css.

    Hi,

    Path is a awesome template. Just wanted to know how to get rid of the comment section that came with it? I have tried going to settings-> discussion and turned off all commenting options but it’s still. Please let me know if there’s another way to remove it.

    Thanks in advance.

    Theme Author Sami Keijonen

    @samikeijonen

    Member

    Please open new topic for new questions.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Removing Breadcrumbs?’ is closed to new replies.