WordPress.org

Support

Support » Plugins and Hacks » Yoast Breadcrumbs » [Plugin: Yoast Breadcrumbs] is it possible to remove the breadcrumb from the home page?

[Plugin: Yoast Breadcrumbs] is it possible to remove the breadcrumb from the home page?

Viewing 2 replies - 1 through 2 (of 2 total)
  • if ( !is_home() ) yoast_breadcrumb(‘<p id=”breadcrumbs”>’,'</p>’);

    Try this:
    Find your home page and make a copy of it and rename it to homepage-no-breadcrumbs.php.

    Then add this to the very top of that page.

    <?php
    /*
    Template Name: Homepage No Breadcrumbs
    */
    ?>

    Where your adding your code:

    <?php if ( function_exists('yoast_breadcrumb') ) {
    
    	$breadcrumbs = yoast_breadcrumb("","",true);
    
    } ?>

    Change “true” to false”.

    Go to your home page from the pages menu and on the right hand side choose templates and choose the new page theme for your home page.

    You can create whole groups of pages that either have or do-not that the breadcrumbs this way.

    Hope that helps.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Yoast Breadcrumbs] is it possible to remove the breadcrumb from the home page?’ is closed to new replies.
Skip to toolbar