![]() |
Different head.tpl on home / welcome page?
My designer has a header he wants on the home page / welcome page that differs from the rest of the site. I assume I can use an if / else statement to call to a custom head.tpl (e.g. head-home.tpl) only on the home page.
Any suggestions for what the code would be? Where does is go - home.tpl or welecome.tpl? (this is for a 4.2.1 site) TIA |
Re: Different head.tpl on home / welcome page?
Answering my own question:
In home.tpl <div id="header"> {if $main eq "catalog" and $current_category.category eq ""} {include file="customer/head-welcome.tpl"} {else} {include file="customer/head.tpl"} {/if} </div> |
Re: Different head.tpl on home / welcome page?
I want to make different header for cart and checkout page.How to code it on 4.4.2?
|
Re: Different head.tpl on home / welcome page?
Quote:
One_Page_Checkout does this by default if you are using one of the alternate skins (Artistic, Vivid Dreams, Fashion Mosiac, etc.). |
All times are GMT -8. The time now is 11:17 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.