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)
-   -   location.tpl (https://forum.x-cart.com/showthread.php?t=33950)

ARW VISIONS 09-15-2007 02:33 PM

location.tpl
 
I would like the root link in the location.tpl to say 'Home' without having to change the store name. Can anyone tell me how to do this?

somekindahate 09-15-2007 05:16 PM

Re: location.tpl
 
Go into skin1/location.tpl and look for the section where it writes out the text between the link tag: {$location[position].0}

Change it to this:

Code:

{if %position.first%}
Home
{else}
{$location[position].0}
{/if}


ARW VISIONS 09-15-2007 05:35 PM

Re: location.tpl
 
Worked great thx!

Jayk 09-15-2007 05:40 PM

Re: location.tpl
 
If you ever want to add additional localizations in the future, create a language variable to display the word 'Home' and call that instead of hard-coding the word into your template.

Jason


All times are GMT -8. The time now is 03:30 PM.

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