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

Welcome.tpl modification

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-24-2011, 07:48 AM
 
JoeS JoeS is offline
 

Senior Member
  
Join Date: Dec 2008
Posts: 124
 

Default Welcome.tpl modification

I have a 1050px width website and I need to insert a 1050x300 image straight under the search bar, I inserted the image into the welcome.tpl file but it was placed between the sides columns. I appreciate help in how to make my welcome.tpl file able to display my "website width" image between the search bar and the rest of the page. There could be another way but I only think of modifying the welcome page to do the job. Thanks and Merry Xmas
__________________
xcart gold plus 4.6.5
responsive customized skin
responsive menus
cdseo + on sale + smart predictive search
Reply With Quote
  #2  
Old 12-24-2011, 09:23 AM
 
BillV BillV is offline
 

Senior Member
  
Join Date: Oct 2011
Posts: 105
 

Default Re: Welcome.tpl modification

Not sure what template you are using but you could try to add it somewhere in the header.tpl file. The welcome.tpl displays in the main body of the page.
__________________
Bill

X-Cart 4.4.4
Websitecm - CDSEOPro
BCSEngineering - Back in Stock
BCSEngineering - Banners
BCSEngineering - Customer Rewards
XcartMods - Smart Template 4.4.4
XcartMods - Watermarked Images
Alteredcart - On Sale
Reply With Quote
  #3  
Old 12-24-2011, 12:02 PM
 
JoeS JoeS is offline
 

Senior Member
  
Join Date: Dec 2008
Posts: 124
 

Default Re: Welcome.tpl modification

Thanks for the reply but if add the image to the head.tpl it will stay wherever you navigate within the website and it should only be on the home page.
__________________
xcart gold plus 4.6.5
responsive customized skin
responsive menus
cdseo + on sale + smart predictive search
Reply With Quote
  #4  
Old 12-24-2011, 12:31 PM
 
BillV BillV is offline
 

Senior Member
  
Join Date: Oct 2011
Posts: 105
 

Default Re: Welcome.tpl modification

I am kind of new at this myself but I believe you could use an "if" statement to include it only on the home page. Something like this:

Code:
{if $main == "catalog"} show image {/if}
__________________
Bill

X-Cart 4.4.4
Websitecm - CDSEOPro
BCSEngineering - Back in Stock
BCSEngineering - Banners
BCSEngineering - Customer Rewards
XcartMods - Smart Template 4.4.4
XcartMods - Watermarked Images
Alteredcart - On Sale
Reply With Quote
  #5  
Old 12-24-2011, 12:36 PM
 
JoeS JoeS is offline
 

Senior Member
  
Join Date: Dec 2008
Posts: 124
 

Default Re: Welcome.tpl modification

Yes this a good idea.. do I add this statement to the home.tpl? or head.tpl?
__________________
xcart gold plus 4.6.5
responsive customized skin
responsive menus
cdseo + on sale + smart predictive search
Reply With Quote
  #6  
Old 12-24-2011, 01:24 PM
 
BillV BillV is offline
 

Senior Member
  
Join Date: Oct 2011
Posts: 105
 

Default Re: Welcome.tpl modification

I would put it in the header.tpl. I am only familiar with v 4.4.4 so I'm not sure if this is right for your situation. You may have to experiment a bit to get it where you want.
__________________
Bill

X-Cart 4.4.4
Websitecm - CDSEOPro
BCSEngineering - Back in Stock
BCSEngineering - Banners
BCSEngineering - Customer Rewards
XcartMods - Smart Template 4.4.4
XcartMods - Watermarked Images
Alteredcart - On Sale
Reply With Quote
  #7  
Old 12-24-2011, 01:57 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Welcome.tpl modification

I would put in in home.tpl just below where you see
{include file="customer/head.tpl'}

if you put it in head you might need to change the css also.

this is the correct code to display it only on the home page.

{if $main eq "catalog" && $current_category.category eq ""}
put your image code here.
{/if}
__________________
xcart 5.1.2
Reply With Quote
  #8  
Old 12-24-2011, 02:10 PM
 
JoeS JoeS is offline
 

Senior Member
  
Join Date: Dec 2008
Posts: 124
 

Default Re: Welcome.tpl modification

Spot on 100%. Thanks ARW
__________________
xcart gold plus 4.6.5
responsive customized skin
responsive menus
cdseo + on sale + smart predictive search
Reply With Quote
  #9  
Old 12-24-2011, 07:25 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Welcome.tpl modification

my pleasure
__________________
xcart 5.1.2
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:51 PM.

   

 
X-Cart forums © 2001-2020