Welcome to Geeklog, Anonymous Thursday, April 18 2024 @ 11:08 pm EDT

Geeklog Forums

multiple header


Status: offline

stevelucky

Forum User
Junior
Registered: 05/25/05
Posts: 17
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.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
 Quote

Status: offline

stevelucky

Forum User
Junior
Registered: 05/25/05
Posts: 17
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?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Here 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
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
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 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.
Geeklog components by PortalParts -- www.portalparts.com
 Quote

All times are EDT. The time is now 11:08 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content