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

Add text home page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-03-2011, 12:37 PM
 
lizg13865 lizg13865 is offline
 

Member
  
Join Date: Sep 2010
Posts: 21
 

Default Add text home page

Hi

Once again my complete lack of template editing knowledge has come back to haunt me!

I am trying to edit the text on my home page. I not only want to change the text ABOVE my main image, but also to add some BELOW the image.

I think I have found the correct template - customer/home_main.tpl - but I cannot edit it, the operation fails.

I'm not sure what the rules are about adding my web address in the forum so I haven't.

Can anyone help?

Thank you!
__________________
X Cart V. 4.1.9
CDSEO Pro
Reply With Quote
  #2  
Old 01-03-2011, 12:59 PM
 
balinor balinor is offline
 

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

Default Re: Add text home page

That isn't the template - the text on the home page is customer/main/welcome.tpl, but you can't actually edit the text in the template, they are all language variables. You can edit them via webmaster mode, or in the 'languages' area of your admin.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 01-03-2011, 01:23 PM
 
lizg13865 lizg13865 is offline
 

Member
  
Join Date: Sep 2010
Posts: 21
 

Default Re: Add text home page

Hello - thanks for trying to help me again!

I can edit the text above the image using the languages thing, but am not sure how to get it to sit below the main image. Should I put my web address in here so you can see what I mean?
__________________
X Cart V. 4.1.9
CDSEO Pro
Reply With Quote
  #4  
Old 01-03-2011, 01:24 PM
 
balinor balinor is offline
 

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

Default Re: Add text home page

If you want to move the text, you have to move the language variable, txt_welcome, in the welcome.tpl file.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 01-03-2011, 01:31 PM
 
lizg13865 lizg13865 is offline
 

Member
  
Join Date: Sep 2010
Posts: 21
 

Default Re: Add text home page

Ok, but if I move that variable - won't all the text move? Can I just leave some where it is, and add more further down the page? Is there a way of splitting this variable into two places?
__________________
X Cart V. 4.1.9
CDSEO Pro
Reply With Quote
  #6  
Old 01-03-2011, 01:35 PM
 
balinor balinor is offline
 

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

Default Re: Add text home page

Ah, ok, then you want to create a new variable - call it txt_welcome2. Then in welcome.tpl, place this where you want it to appear:

{$lng.txt_welcome2}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 01-03-2011, 02:02 PM
 
lizg13865 lizg13865 is offline
 

Member
  
Join Date: Sep 2010
Posts: 21
 

Default Re: Add text home page

Thank you again! I think can do that. You are a star.
__________________
X Cart V. 4.1.9
CDSEO Pro
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 02:44 AM.

   

 
X-Cart forums © 2001-2020