Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Welcome

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-16-2007, 06:23 AM
 
pnm pnm is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 99
 

Default 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?
__________________
version 4.018 xcart
Reply With Quote
  #2  
Old 05-16-2007, 06:52 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 05-16-2007, 07:19 AM
 
pnm pnm is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 99
 

Default Re: Welcome

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

Thanks again.
__________________
version 4.018 xcart
Reply With Quote
  #4  
Old 05-20-2007, 04:40 AM
 
pnm pnm is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 99
 

Default 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?
__________________
version 4.018 xcart
Reply With Quote
  #5  
Old 05-20-2007, 04:55 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Welcome

Sure, just create a two cell table or a float left and float right <div>.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 05-20-2007, 05:41 AM
 
pnm pnm is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 99
 

Default 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}
__________________
version 4.018 xcart
Reply With Quote
  #7  
Old 05-20-2007, 06:51 AM
 
pnm pnm is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 99
 

Default 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
__________________
version 4.018 xcart
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:39 AM.

   

 
X-Cart forums © 2001-2020