johnquimera Posted June 19, 2019 Share Posted June 19, 2019 I'm working on customizing the SIX template. And there is an element that will be in the Header, but I need it to appear only on the homepage / index.php. How do I do that? I've tried that, but it does not work. {if $filename eq "index.php"} <div class="only-homepage"> {else} <div class="container{if $skipMainBodyContainer}-fluid without-padding{/if}"> {/if} I appreciate who can help me. 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted June 19, 2019 Share Posted June 19, 2019 (edited) {if $templatefile eq "homepage"} <div class="only-homepage"> {else} <div class="container{if $skipMainBodyContainer}-fluid without-padding{/if}"> {/if} The value of {$templatefile} is .tpl file name. Edited June 19, 2019 by Kian 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.