![]() |
only on home page {if} statement
Can anyone tell me what the if statement would be if I want to display something ONLY on the home page.
I know for product and products it would be {if $main eq "product" AND "products"} insert code here {/if} not sure what would replace "product" AND "products" for just home page. |
Here is what I usually use:
Code:
{if $main eq "catalog" and $current_category.category eq ""}stuff{/if} |
Hmm that didnt work for me it wiped the page out.
A little explanation of what im trying to do, because the descriptions are so far down in code in x-cart im trying to duplicate it with a hidden layer so that if you view it in lynx the same text is placed at the top and picked up first, so far i've got it working with category descriptions with code like this in home.tpl Code:
<div id="description" style="position:absolute; left:10px; top:10px; visibility:hidden; z-index:5000;"> What im trying to do is make all the relevant text per page be copied on up in the code, so in products pages the category description is up the top (done), in home page welcome text is copied up to the top (not working), product page copy the product description up to the top (not working - still shows cat text)[/code] |
Whoa, you sure you want to do that? Google does not like hidden text.....
|
Google doesnt detect it if it is CSS, only thing they can detect is if font colour is the same as the background.
What im doing is no different than a site that is created in layers. |
All times are GMT -8. The time now is 09:31 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.