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.
[SOLVED] Showing h1 header on one page only
-
- Forum Members
- Posts: 31
- Joined: Thu Oct 04, 2007 9:23 am
[SOLVED] Showing h1 header on one page only
Last edited by rhysdavies on Thu Apr 30, 2009 2:43 pm, edited 1 time in total.
Re: Showing h1 header on one page only
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.)
{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.)
-
- Forum Members
- Posts: 31
- Joined: Thu Oct 04, 2007 9:23 am
Re: Showing h1 header on one page only
Brilliant - all that was needed was to put '$' before 'page_alias' and it worked perfectly.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.)
Thanks