My problem is to remove raquo sign, I mead "»" form breadcrubs. I tried in many different ways to do it but it always appears. str_replare doesn't work :/ I put a code like:


str_replace("»", " ", $breadcrumb);

but it also doesn't work. Does anyone can help me?

Regards,
David

Comments

ugerhard’s picture

The "correct" way would be to override the theme function theme_breadcrumb in your template:

http://api.drupal.org/api/function/theme_breadcrumb/5

See also "Using Theme Override Functions": http://drupal.org/node/55126

goodghost’s picture

thanx for the direction, I've changed at theme.inc the raquo sing and it looks fine at the momment, thak you very much

http://dnawrot.proste.pl/drupal/?q=node/15

yelvington’s picture

I've changed at theme.inc

That's the wrong way. The right way is to override the function in template.php, as documented in the theme developer's guide. See http://drupal.org/node/77487 for an explanation.

goodghost’s picture

Now I get what u wrote, I've overrided a function wchich generates breadcrumbs in my template.php, what gave me untouched structure of the rest themes, thank you for help

ocdude’s picture

I have the following in my template.php

function theme_breadcrumb($breadcrumb) {
  if (!empty($breadcrumb)) {
    return '<div class="breadcrumb">'. implode(' - ', $breadcrumb)
.'</div>';
  }
}

But when I access my site I get

Fatal error: Cannot redeclare theme_breadcrumb() (previously declared in /home/webdev/public_html/drupal/includes/theme.inc:1176) in /home/webdev/public_html/drupal/sites/all/themes/sfsu_foundation/template.php on line 7

I have no idea what I'm doing wrong...

I need to change the double arrow character in the breadcrumbs in order to comply with accessibility rules set down from on high.

WorldFallz’s picture

i think you need to replace the "theme" with the name of your theme or "phptemplate".

===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime."
-- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz

gavinblair’s picture

anybody have any insight as to why using str_replace() doesn't work here?