Page 1 of 1
[SOLVED] Showing h1 header on one page only
Posted: Thu Apr 30, 2009 11:46 am
by rhysdavies
Is there a way of putting the h1 header on one page only (the homepage) without having to have a different template? I have tried putting it in the 'Smarty data or logic that is specific to this page' and 'Extra page attricute' in the options menu but without succcess.
Any help appreciated.
Re: Showing h1 header on one page only
Posted: Thu Apr 30, 2009 1:36 pm
by jmcgin51
you could add an if/then statement to your existing template, like
{if page_alias == "mypage"}
text
{/if}
(disclaimer - I know this is not the right code, but it should get you started in the right direction. The concept is solid.)
Re: Showing h1 header on one page only
Posted: Thu Apr 30, 2009 2:42 pm
by rhysdavies
jmcgin51 wrote:
you could add an if/then statement to your existing template, like
{if page_alias == "mypage"}
text
{/if}
(disclaimer - I know this is not the right code, but it should get you started in the right direction. The concept is solid.)
Brilliant - all that was needed was to put '$' before 'page_alias' and it worked perfectly.
Thanks