Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2007
    Posts
    105
    Plugin Contributions
    4

    Default Header & footer tpl files

    I'm trying my first serious custom template and I was wondering how important the php code & div tags (outside of the error messages & shopping cart links code) are in the header & footer tpl's. If I put all the necessary code to display the error message, cart links, customer session log out/login into my template on the main page tpl can I basically wipe out the code in those (header & footer tpl) files? I dont want banners, tabs or anything like that to display.

    Thanks

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Header & footer tpl files

    You probably can, but the safest and easiest thing to do would be to set $flag_disable_header and $flag_disable_footer in tpl_main_page.php, and don't touch tpl_header.php and tpl_footer.php. They don't even need to be in your template folder. This way the important error message functions remain.

    You can copy code for elements you do want into other files as desired.
    For my template I put the logo and header nav code in column_left.php.

  3. #3
    Join Date
    Apr 2007
    Posts
    105
    Plugin Contributions
    4

    Default Re: Header & footer tpl files

    Kewl!! That's taking me in the direction I want. Now I just have to figure out what to do with the side boxes.

    Thank you very much!!

 

 

Similar Threads

  1. Header & Footer Have Shifted & There's A Double Green Bar At The Top
    By yonside in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 24 Jan 2008, 08:38 PM
  2. tpl files
    By mex in forum General Questions
    Replies: 4
    Last Post: 1 Mar 2007, 12:11 PM
  3. header and footer files
    By PortMan in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 20 Sep 2006, 03:52 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR