Drupal 7 – Hide breadcrumb when there is only one link

If you need to hide breadcrumb links when there is only the Home link add this code to your template.php file – change hook_ with your themes name.

function hook_breadcrumb($variables) {
if (count($variables['breadcrumb']) == 1) {
return false;
}
}

Posted by

Leave a Reply