Removing breadcrumbs



Seasoned web developers tend to assume that everyone would want to have breadcrumbs. However, there are many situations where the site owner would not like to have breadcrumbs, either due to design constraints or the size of the website. Why would you place breadcrumbs on a 12 page website where each page is linked to every other page on the website?

Breadcrumbs refers to the Home >> Admin >> Menus >> ... links at the top which allow the user to trace back to home. This is a term inspired by the famous story of Hansel & Gretel, where Hansel leaves a trail of breadcrumbs to help them find their way back home.

There are two easy ways to remove breadcrumbs from the website in drupal. You can either edit the css file or the template or theme file.

If you are using a PHPTemplate based theme, you should have a page.tpl.php somewhere inside the themes directory. You should comment out the following code:

// if ($breadcrumb) print $breadcrumb; 

Instead if you are using a theme such as chameleon or marvin, you would not find a page.tpl.php. You should open the .theme file and comment out the following line of code

//$output .= theme("breadcrumb", drupal_get_breadcrumb());

If you prefer not to edit these files, you can add the following code to your css file:

.breadcrumb {display: none;}

Comments