The default "»" is ok, but one might like commas or "-->" or whatever. Even custom icons might be required in some cases. Thanx in advance for considering this one.

Comments

klonos’s picture

Title: Allow setting custom breadcrumb separators. » Allow setting custom breadcrumb separators and wrapping them in <span> tags too.

...a tag around each separator with a "breadcrumb-separator" class would be perfect for theming them too!

MGN’s picture

Status: Active » Closed (won't fix)

All of this can (and is) done within the theme layer - it would be redundant and possibly confusing for custom breadcrumbs to override this normal behavior.

The theme determines how the breadcrumb information is depicted on the page - custom breadcrumbs just provides the information for the crumbs. You can customize the appearance of the crumbs by modifying your theme. Custom breadcrumbs does provide some html identifiers to help with this when a custom breadcrumb has been defined for a page.

buzzofnz’s picture

That's great!!

But I tried to use this code in my template.php file and it didn't work:

function MYTHEME_breadcrumb($variables) {
  $breadcrumb = $variables['breadcrumb'];

  if (!empty($breadcrumb)) {
    // Provide a navigational heading to give context for breadcrumb links to
    // screen-reader users. Make the heading invisible with .element-invisible.
    $output = '<h2 class="element-invisible">' . t('You are here') . '</h2>';

    $output .= '<div class="breadcrumb">' . implode(' > ', $breadcrumb) . '</div>';
    return $output;
  }
}

Any help?

Daniel Schaefer’s picture

Hi
I tried replacing the <h2>-element with a <span>by the above method (template.php) and it has no effect at all. I am wondering if this is hard-coded somewhere? I can't find the place to change the h2-wrapper anywhere.. my client wants to get rid of it for SEO reasons. Any suggestions?

MLZR’s picture

Issue summary: View changes

Hi Daniel,
do you have found a solution?
I am searching for the same reason to get rid of the H2 tag, and don't want to hack core.
thanks,
Marchello