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)
-   -   I am trying to add an image in home.tpl... (https://forum.x-cart.com/showthread.php?t=23634)

thefizix 07-27-2006 11:47 AM

I am trying to add an image in home.tpl...
 
I am trying to add a banner advertisement above the featured products portion on my home page... I added the image source in skin1/customer/home.tpl. Then I placed the image source above the featured product code and it worked. But now my issue is that the banner advertisment is in everypage and I only want it for the main page. Please help?

www.shopthefizix.com

pauldodman 07-27-2006 12:02 PM

{if $main eq "catalog" or $current_category.category eq ""}

your code

{/if}

thefizix 07-27-2006 12:46 PM

where do i insert this line of code?
 
Quote:

Originally Posted by pauldodman
{if $main eq "catalog" or $current_category.category eq ""}

your code

{/if}


where would I insert this line of code? I added it in the home.tpl and it still shows the banner on other pages.

fordy3 07-27-2006 01:24 PM

Re: where do i insert this line of code?
 
Quote:

Originally Posted by thefizix
Quote:

Originally Posted by pauldodman
{if $main eq "catalog" or $current_category.category eq ""}

your code

{/if}


where would I insert this line of code? I added it in the home.tpl and it still shows the banner on other pages.


In 4.1.0 this works if you just want to display on the main page...

{if $current_category.category eq ""}

YoUr CoDe

{/if}


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

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