Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2007
    Posts
    3
    Plugin Contributions
    0

    Have a Drink 2 headers - 1 for 'home' and 1 for the rest of site?

    How can I make 2 headers for my zen cart site; 1 for the main index.php page, and 1 for all other pages?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,711
    Plugin Contributions
    6

    Default Re: 2 headers - 1 for 'home' and 1 for the rest of site?

    You could use the $this_is_home_page variable to determin when to call which one ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #3
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,860
    Plugin Contributions
    2

    Default Re: 2 headers - 1 for 'home' and 1 for the rest of site?

    http://www.zen-cart.com/forum/showthread.php?t=55487
    Similar request with details of "how to" at above url
    Dezina ZenCart Templates
    Please do not PM for support queries..Post in forums..help others

  4. #4
    Join Date
    Aug 2007
    Posts
    3
    Plugin Contributions
    0

    Default Re: 2 headers - 1 for 'home' and 1 for the rest of site?

    Thanks Misty, worked right away!
    FYI for anyone following this post, the following function allows you to perform logic around whether or not you're on the 'home' page:
    if ($this_is_home_page)
    {
    include('top_main.php');
    }
    else
    {
    include('top.php');
    }

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •