| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Welcome.tpl modification | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 ![]() |
|||||||
#2
|
|||||||
|
|||||||
![]() 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 |
|||||||
#3
|
|||||||
|
|||||||
![]() 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 ![]() |
|||||||
#4
|
|||||||
|
|||||||
![]() 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:
__________________
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 |
|||||||
#5
|
|||||||
|
|||||||
![]() 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 ![]() |
|||||||
#6
|
|||||||
|
|||||||
![]() 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 |
|||||||
#7
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
#8
|
|||||||
|
|||||||
![]() Spot on 100%. Thanks ARW
__________________
xcart gold plus 4.6.5 responsive customized skin responsive menus cdseo + on sale + smart predictive search ![]() |
|||||||
#9
|
|||||||||
|
|||||||||
![]() my pleasure
__________________
xcart 5.1.2 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|