Results 1 to 8 of 8
  1. #1
    Join Date
    Apr 2008
    Location
    Rhode Island
    Posts
    21
    Plugin Contributions
    0

    Default How do I remove the header completely

    I want to remove the header from my site but can't find where to do that.

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

    Default Re: How do I remove the header completely

    There is not an admin switch for this, but you can easily accomplish it by editing /includes/templates/your_template/common/tpl_main_page.php.
    After the information comments at the top of the file, add

    $flag_disable_header = true;

    to get
    PHP Code:
     * @package templateSystem
     
    * @copyright Copyright 2003-2006 Zen Cart Development Team
     
    * @copyright Portions Copyright 2003 osCommerce
     
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     
    * @version $Idtpl_main_page.php 4886 2006-11-05 09:01:18Z drbyte $
     */
      
    $flag_disable_header true

  3. #3
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: How do I remove the header completely

    This is probably a silly question - Why would you remove the header completely?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

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

    Default Re: How do I remove the header completely

    Yes, there are some functions in the header that are not readily accessible from other parts of the page.

    The corrollary to removing the header is moving the navbar and logo elements to a sidebar. This is not difficult if you can move code around without messing it up, and can be done in a number of different ways depending on your desired result.

  5. #5
    Join Date
    Apr 2008
    Location
    Rhode Island
    Posts
    21
    Plugin Contributions
    0

    Default Re: How do I remove the header completely

    Thank you Glenn! Finally no header!

    I don't want all that header space because it takes away from my current layout. I want everything on the left side of the page. I added a login sidebox and logo sidebox.

  6. #6
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: How do I remove the header completely

    I added a login sidebox and logo sidebox.
    Ah! Thanks for posting your reasoning. :)
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  7. #7
    Join Date
    Apr 2008
    Location
    Rhode Island
    Posts
    21
    Plugin Contributions
    0

    Default Re: How do I remove the header completely

    What if I wanted to add my nav to the top of my main page to look like this HOME | MY ACCOUNT | SHOPPING CART | WISHLIST
    How would I do that. I can't find the link codes anywhere. I've been searching for almost 2 hours now.

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

    Default Re: How do I remove the header completely

    Home, My Account, Shopping Cart and Checkout are all part of the standard header navigation (when appropriate), and the code is in /includes/templates/template_default/common/tpl_header.php. You can copy it from there to /includes/templates/your_template/common/tpl_main_page.php. You would probably want to put it near the breadcrumbs code.

 

 

Similar Threads

  1. how to remove completely the right sideboxes?
    By giuly in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Jul 2009, 10:15 AM
  2. How do i completely remove the Model field?
    By TATIANA in forum Basic Configuration
    Replies: 6
    Last Post: 23 Jul 2008, 01:51 PM
  3. How to remove the Update Cart button completely?
    By jdunique in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 26 Apr 2008, 10:02 PM

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