X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How to change label of home link in bread crumbs (https://forum.x-cart.com/showthread.php?t=32746)

RStoelting 07-23-2007 11:41 AM

How to change label of home link in bread crumbs
 
The default of the bread crumb navigation link appears to be that the first link (to home.php) is labled with the defined company name. I would like to add 'store' to the label so the first link reads 'Company Name Store'. This store is only part of a much larger site. Using the 'company name' alone for the link label can confuse the visitor into thinking they are on our site home page, when they are actually only at the store home page.

Any suggestion for where I can add 'store' to the home.php link?

carpeperdiem 07-23-2007 02:49 PM

Re: How to change label of home link in bread crumbs
 
If you use Webmaster Mode - you'll discover that the breadcrumbs are made by the template file, /skin1/location.tpl

From there, you may want to edit location.tpl

I found some code in the fourm for alternate breadcrumbs...

My location.tpl now looks like this -- yours may or may not work with this.

Code:

{* $Id: location.tpl,v 1.14.2.2 2007/06/18 11:42:03 max Exp $ *}
{if $location}
{* {strip} *}
<span class="NavigationPath">
  <a href="/">Home</a>&nbsp;&rarr;&nbsp;
  {section name=position loop=$location start=1}
    {if $location[position].1 ne "" }<a href="{$location[position].1|amp}">{/if}
    {$location[position].0}
    {if $location[position].1 ne "" }</a>{/if}
    {if not %position.last%}&nbsp;&rarr;&nbsp;{/if}
  {/section}
</span>
{* {/strip} *}
{/if}


RStoelting 07-23-2007 05:23 PM

Re: How to change label of home link in bread crumbs
 
Thanks. That was what I needed. I just did some minor tweaking to get the look I needed.


All times are GMT -8. The time now is 01:27 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.