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

pnm 05-16-2007 06:23 AM

Welcome
 
Some time ago when I first installed Xcart (learning), I managed to remove the "welcome" intro at the top of the site in the home page. I can't remember whether this was an option or something I commented out in through the code.

Can someone remind me which template this bit of code is in or is it simply an option?

balinor 05-16-2007 06:52 AM

Re: Welcome
 
customer/main/welcome.tpl. You can always find copies of your original templates in skin1_original. Also, this thread will help you figure out which template is which:

http://forum.x-cart.com/showthread.php?t=21529

pnm 05-16-2007 07:19 AM

Re: Welcome
 
Thanks Balinor I simply restored the original template. I must have originally deleted it instead of commented the line.

Thanks again.

pnm 05-20-2007 04:40 AM

Re: Welcome
 
One more on the welcome para.

I know how to add an image into the welcome section with the writing directly under it.

Is there a way to place the image and the writing side by side, that is have the writing to the right of the image, instead of below the image?

balinor 05-20-2007 04:55 AM

Re: Welcome
 
Sure, just create a two cell table or a float left and float right <div>.

pnm 05-20-2007 05:41 AM

Re: Welcome
 
Thanks Balinor, but I am definately no code expert. I tried looking up some examples of the float right <div> but I'm not sure on how to apply it in order to split the image and then the text. How would I add it to the welcome.tpl below:-

{* $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><img src="skin1/images/Hsboy2.jpg" alt="Hugs and Stitches Boy"><br>{$lng.lbl_welcome_to} </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}

pnm 05-20-2007 06:51 AM

Re: Welcome
 
Worked it out.


First add this in the CSS

.Floatleft { float: left; }


Second add this within the Welcome.tpl

<H3><p><img class="floatleft" src="skin1/images/Hsboy2.jpg" alt="Hugs and Stitches Boy">{$lng.lbl_welcome_to}</p>


Thanks again balinor


All times are GMT -8. The time now is 02:45 PM.

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