WordPress.org

Ready to get started?Download WordPress

Forums

Yoast Breadcrumbs
is it possible to remove the breadcrumb from the home page? (3 posts)

  1. deliwasista
    Member
    Posted 1 year ago #

    Im using WordPress as a static brochure style site. I would like to remove the breadcrumb from the home page only - as I figure you shouldnt be lost on page one and it just looks overkill.

    Has anyone else acheived this? :)

    http://wordpress.org/extend/plugins/breadcrumbs/

  2. flynsarmy
    Member
    Posted 1 year ago #

    if ( !is_home() ) yoast_breadcrumb('<p id="breadcrumbs">','</p>');

  3. wallydavid
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic