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)
-   -   hierarchy tree (https://forum.x-cart.com/showthread.php?t=30317)

imimin 04-10-2007 10:48 AM

Re: hierarchy tree
 
I want to put a break between "Welcome to" and the company name. I would like to set the font size of the company name to 16 or so keeping the size of the "Welcome to" the same. The location.tpl file seems to deal with the hierarchy tree. How would I modify the code for the "Welcom to Company Name" at the top of the home page.

Thank you!

imimin 04-10-2007 11:06 AM

Re: hierarchy tree
 
I am interested to see how I (we) can do this per my question in the last post above.

However, I tried modifying the "welcome.tpl" file as follows:

{* $Id: welcome.tpl,v 1.23.2.1 2005/04/23 08:32:48 max Exp $ *}
{if ($active_modules.Greet_Visitor ne "") and ($smarty.cookies.GreetingCookie ne "") and $logout_user eq ''}
<H3>{$lng.lbl_welcome_back}, {$smarty.cookies.GreetingCookie|replace:"\'":"'"} </H3>
{else}
<!--<H3>{$lng.lbl_welcome_to} { $config.Company.company_name }</H3>-->
{/if}
{$lng.txt_welcome}
<P>
{if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu ne "Y"}
{include file="modules/Bestsellers/bestsellers.tpl"}
{/if}
<P>
{include file="customer/main/featured.tpl" f_products=$f_products}

notice that I just commented out the <!--<H3>{$lng.lbl_welcome_to} { $config.Company.company_name }</H3>--> portion of the script. If I leave it like this, will it affect any other portion of the script?

Thanks!

inebriate 04-10-2007 06:32 PM

Re: hierarchy tree
 
you should get used to the smarty syntax for commenting things out by using {* *}

as for your question, what you have commented out above will not effect the rest of the template,...you might as well comment out the {else} as well

imimin 04-11-2007 10:55 AM

Re: hierarchy tree
 
Quote:

Originally Posted by imimin
I want to put a break between "Welcome to" and the company name. I would like to set the font size of the company name to 16 or so keeping the size of the "Welcome to" the same. The location.tpl file seems to deal with the hierarchy tree. How would I modify the code for the "Welcom to Company Name" at the top of the home page.

Thank you!


Can I get a comment on this?

inebriate 04-11-2007 12:54 PM

Re: hierarchy tree
 
just change it using css, wrap it in <span style="font-size:16px"></span>

imimin 04-16-2007 10:26 AM

Re: hierarchy tree
 
Thanks!

Anoter question on this topic:

How can I change the name that appears on the home name of the hierarchy tree from displaying the "Company Name" to the caption that reads "Home"?

Thanks again!

balinor 04-16-2007 10:27 AM

Re: hierarchy tree
 
http://forum.x-cart.com/viewtopic.php?t=24008


All times are GMT -8. The time now is 05:55 PM.

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