I know this sounds elementary , but I am not sure how I should enable the Breadcrumbs.Is there a checkbox or somthing where I should click to get the Breadcrumbs...somehow I am not it getting it all.

Thank you

Comments

keanu007’s picture

What do I do

kiwibytes’s picture

Someone should have answered it a long time ago.
Recently, I also got stuck in the same problem and it took me some time before I found out that Breadcrumbs are enabled from Theme option pages of individual themes.

knalstaaf’s picture

This option is not always provided in the theme option page AFAIK.

If this is the case, simply put the following line of code somewhere in the page.tpl.php of your theme-folder: <?php print $breadcrumb; ?>

Now flush the cache.

If that leads to no result or just a "Home"-link while you want a more extensive breadcrumb, put this code in the template.php file of your theme-folder:

/**
* Return a themed breadcrumb trail.
*
* @param $breadcrumb
*   An array containing the breadcrumb links.
* @return a string containing the breadcrumb output.
*/
function phptemplate_breadcrumb($breadcrumb) {
  if (!empty($breadcrumb)) {
	$title = drupal_get_title();
	if (!empty($title)) {
	  $breadcrumb[] = '<div class="breadcrumb-current">'. $title .'</div>';
	}
	return '<div class="breadcrumb">'. implode(' &rsaquo; ', $breadcrumb) .'</div>';
  }
}

Once this has been done, flush your cache once again and you should be ready to go.

There are modules out there which do the same job and offer extra options for breadcrumbs (e.g. Custom Breadcrumbs, Menu Breadcrumb and even Menu Trails provides a useful breadcrumb system).

amitkumarmits@gmail.com’s picture

In your root folder : includes/theme.inc

change the function:
function theme_breadcrumb($breadcrumb) {
if (!empty($breadcrumb)) {
$title = drupal_get_title();
if (!empty($title)) {
$breadcrumb[] = ''. $title .'';
}
return '

';
}
}

This will help every body to display breadcrumb.

loopy1492’s picture

I was having the same problem, but when I went to the Theme settings page, the option for a Breadcrumb Menu wasn't there. After some experimentation, I found that the breadcrumb menu is called "Secondary Menu" in some themes, but its wrapper div is "breadcrumb" and it renders as a breadcrumb trail.