WordPress.org

Forums

Path
Removing Breadcrumbs? (5 posts)

  1. teresa_m
    Member
    Posted 2 years ago #

    Hi there -

    Looking to remove breadcrumbs from pages and posts. Any suggestions?

  2. Sami Keijonen
    Member
    Theme Author

    Posted 2 years ago #

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

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

    Posted 2 years ago #

    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.

  4. nafiz08
    Member
    Posted 2 years ago #

    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.

  5. Sami Keijonen
    Member
    Theme Author

    Posted 2 years ago #

    Please open new topic for new questions.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.