Add "You are Here:" to breadcrumbs

Hello,



What is the best way to add a custom text like “You are Here:” before breadcrumbs.



I want breadcrumbs to look like this


You are Here: Home > Computers



Instead of just:


Home > Computers



Thanks

Edit the following file:



/skins/yourskin/customer/common_templates/breadcrumbs.tpl



Replace contents with:


```php


{if $breadcrumbs && $breadcrumbs|@sizeof > 1}

You are Here: 
{strip}
{foreach from=$breadcrumbs item="bc" name="bcn" key="key"}
{if $key != "0"}
>
{/if}
{if $bc.link}
{$bc.title|unescape|strip_tags|escape:"html"}
{else}
{$bc.title|unescape|strip_tags|escape:"html"}
{/if}
{/foreach}
{/strip}

{/if}

```
Save then clear your site cache, via yourstore.com/youradmin.php?cc - ie. add "?cc" to the end of your admin URL.

Note I very much doubt there will be any further releases in V2 nor V3, under normal conditions where future updates are expected, this file would be replaced during the upgrade, so you would have to reapply your changes as there is no Breadcrumbs hook. In saying that...

You could create your own template, in:-

/skins/yourskin/customer/blocks/static_templates/

Name the file my_breadcrumbs.tpl or similar, but must end in ".tpl", use the code as above then you can create a new block and select your new custom template file to replace the current Breadcrumbs block. This should be future proof - but as I said, don't hold your breath for another V2/V3 release.

Also you can try to translate this 'Home' to 'You are Here: Home'

[quote name='cscartrocks' timestamp='1371649034' post='163977']

Also you can try to translate this 'Home' to 'You are Here: Home'

[/quote]

I thought that would do it, too, but changing the language variable value would make the entire “You are Here: Home” the href link to the “Home” page.