Jump to content

Different Header.tpl For Homepage.


Recommended Posts

  • 4 months later...

Hi, I haven't gotten the hand of smarty yet, can you please post the whole code lines here?

 THANK YOU!

 

there is a line:

 

{if !empty($display_header)}{include file="$tpl_dir./header.tpl" HOOK_HEADER=$HOOK_HEADER}{/if}

change it to:

{if $page_name=='index'}
{if !empty($display_header)}{include file="$tpl_dir./header.tpl" HOOK_HEADER=$HOOK_HEADER}{/if}
{else}
{if !empty($display_header)}{include file="$tpl_dir./MY-FILE-WITH-HEADER.tpl" HOOK_HEADER=$HOOK_HEADER}{/if}
{/if}
Link to comment
Share on other sites

  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...