Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 08:36 am EST

Geeklog Forums

Custome Header Homepage


Status: offline

adydas

Forum User
Junior
Registered: 02/26/04
Posts: 33
Simple questions I hope, I want to put a custom header on the homepage only, and then have another standard header on all other pages.
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
GL supports having a custom function to be used instead of the default COM_siteHeader function in lib-common. It's dependant on the theme selected and if a function exists then it will be used - as seen by this code snippet at the top of COM_siteHeader()
Text Formatted Code

    $function = $_CONF['theme'] . '_siteHeader';

    if( function_exists( $function ))
    {
        return $function( $what );
    }

 


You would then have to add logic to detect the page and if this is index.php and on the homepage ... etc ..
Geeklog components by PortalParts -- www.portalparts.com
 Quote

All times are EST. The time is now 08:36 am.

  • 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