Re: Change bread crumb to start with "Home" not company name
Hi
We do not want to show the product as the last item on the breadcrumb, so have commented this out as you will see from the script below.
However, now the last item, isnt the last item in the variable. Hence the seperator always shows and I cant style the last one seperately.
Can anyone help with what changes I need to apply to the PHP to remove the product as the last one in the loop.
Thanks
{if $location}
<div id="location" style="padding-left:10px;">
{foreach from=$location item=l name=location }
{if $l.1 && !$smarty.foreach.location.last}
<a href="{$l.1|amp}" class="bread-crumb {if $smarty.foreach.location.last} last-bread-crumb{/if}">{if $smarty.foreach.location.first}Home{else}{$l.0|esc ape}{/if}</a>
{else}
{* <font class="bread-crumb{if $smarty.foreach.location.last} last-bread-crumb{/if}">{$l.0|escape}</font> *}
{/if}
{if $smarty.foreach.location.last neq "1"}
<span>>></span>
{else}
{/if}
{/foreach}
</div>
{/if}
|