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)
-   -   Homepage only images (https://forum.x-cart.com/showthread.php?t=63153)

jgodek777 04-03-2012 05:35 AM

Homepage only images
 
Hi!
X-Cart version 4.4.5

Im adding a div layer for call to actions that I only want visible on the homepage.

How can I remove this from all other pages?
Is there a CSS class i can grab from only the homepage or is there XCART code I can use?

Thanks

X-Cart version 4.4.5

balinor 04-03-2012 06:06 AM

Re: Homepage only images
 
Use Smarty:

Code:

{if $main eq "catalog" and $current_category.category eq ""}home page only content{/if}

totaltec 04-03-2012 06:07 AM

Re: Homepage only images
 
{if $main eq "catalog" and $current_category.category eq ""}
Show this.
{/if}
Edit: Padriac is fast...:-)

cherie 04-10-2012 01:26 PM

Re: Homepage only images
 
If the images only appear on the home page in the center area then you could just add them to welcome.tpl


All times are GMT -8. The time now is 05:55 PM.

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