Posted on: 06/16/06 07:14pm
By: stevelucky
is there anyway to have multiple headers? i have a client that wants to have a different header for each page. the navigation and everything will stay the same, they just want a different image for the header. they're going to have mostly static pages.
multiple header
Posted on: 06/17/06 03:45am
By: Dirk
You can use PHP code in header.thtml. And the theme can even override the entire COM_siteHeader function if you have a function named, e.g., professional_siteHeader (replace "professional" with the name of your theme) in the theme's functions.php
bye, Dirk
multiple header
Posted on: 06/17/06 10:38am
By: stevelucky
okay. this is great to know that this is possible. but i'll be honest and say that i'm still not quite sure about how to go about doing this. is there anywhere that you can point me that will give me a little more specifics?
multiple header
Posted on: 06/17/06 03:21pm
By: Dirk
Here[*1] is an earlier post of mine. Instead of changing the color you could as well change any images.
Simply write some PHP code that checks where on the site the user is an then emit CSS or HTML to include the images you want.
bye, Dirk
multiple header
Posted on: 06/17/06 06:09pm
By: Blaine
As Dirk noted, you can take full control over the siteheader by tweaking the theme header.thtml, adding some php if the need for dynamic change is small or replace the COM_siteHeader function with a custom function that is theme specific.
This
site[*2] is a project I did for a client and clicking on a colored tab effects the overall site template such as all the links change to match the selected tab color. It uses a custom COM_siteHeader function.