Overriding Breadcrumb Separator in Drupal
Looking to override the breadcrumb separators? Add the following to template.php-
Replace 'kitten' with something like > or ยป or even an image.
function phptemplate_breadcrumb($breadcrumb) {
if (!empty($breadcrumb)) {
return '<div class="breadcrumb">'. implode(' kitten ', $breadcrumb) .'</div>';
}
}
To replace the breadcrumb separator with an image use the following, replacing the image path/name with the appropriate location of the image. This will be looking for an image in the theme directory.
function phptemplate_breadcrumb($breadcrumb) {
if (!empty($breadcrumb)) {
return '<div class="breadcrumb">'. implode('<img src="' . base_path() . path_to_theme() . '/path/to/image.png" />', $breadcrumb) .'</div>';
}
}