I want to remove the header from my site but can't find where to do that.
I want to remove the header from my site but can't find where to do that.
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 getPHP 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 $Id: tpl_main_page.php 4886 2006-11-05 09:01:18Z drbyte $
*/
$flag_disable_header = true;
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.
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.
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.
Ah! Thanks for posting your reasoning. :)I added a login sidebox and logo sidebox.
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.
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.
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.