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)
-   -   Change company name to home in location (https://forum.x-cart.com/showthread.php?t=25231)

dmi-martin 09-25-2006 08:12 AM

Change company name to home in location
 
How or where can I change the company name to just say "home" in the location script or breadcrumbs?

NightFire 09-25-2006 10:29 AM

Re: Change company name to home in location
 
This can be found in the general settings.

Please enter your version number, so we'll can assist you better in the future.

mcitde 09-25-2006 10:32 AM

Re: Change company name to home in location
 
You can do very simple by changing the skin1/location.tpl. First look for {section name=position loop=$location} change it to {section name=position loop=$location start=1}. This will take away the company name. Then look for {if $location} at the top. After just add <a href="home.php">Home</a> :: . Thats it...

dmi-martin 09-25-2006 11:10 AM

Re: Change company name to home in location
 
Thank you, worked great.

balinor 09-26-2006 03:11 AM

Re: Change company name to home in location
 
Please be sure to update your signature as mentioned above per the forum rules:

http://forum.x-cart.com/viewtopic.php?t=6489

Thank you :)

DaveB 10-17-2006 03:34 AM

Re: Change company name to home in location
 
Quote:

Originally Posted by mcitde
You can do very simple by changing the skin1/location.tpl. First look for {section name=position loop=$location} change it to {section name=position loop=$location start=1}. This will take away the company name. Then look for {if $location} at the top. After just add <a href="home.php">Home</a> :: . Thats it...


Can I just add.

If you move the line <FONT....

above {if $Location}

so that it looks like

<FONT class="NavigationPath">
{if $location}<a href="home.php">Home :: </a>

Your breadcrumbs will have the style applied to the 'Home' as well.

William 10-17-2006 09:09 AM

Re: Change company name to home in location
 
This is a perfect answer to the question! =D>

I would also like to add that you could really simplify the whole location.tpl as such:

Code:

{if $location}
{strip}
 <p class="theWhere">
  <a href="home.php">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}
 </p>
{/strip}
{/if}


ephesians525 11-09-2006 10:21 PM

Re: Change company name to home in location
 
If it is any help to anyone. I followed the above instructions, and still the style of "Home" was different so I added a class to the anchor:
<FONT class="NavigationPath">
{if $location}<a href="home.php" class="NavigationPath">Home</a>&nbsp;::&nbsp;

It worked better for styling the anchor than font class.

Michaelklouda 03-29-2007 12:50 PM

Re: Change company name to home in location
 
Ephesians525 - thank you. And everyone else, thank you as well. This is exactly what I was looking for!


All times are GMT -8. The time now is 06:05 AM.

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