Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2010
    Posts
    263
    Plugin Contributions
    0

    Default Trying to edit header

    Hi,

    I am working on www.dragons.digi-blue.co.uk, using version 1.3.9 h. I am not 100% familiar with php, and wonder if someone can just have a look at my tpl_header and tell me what I am doing wrong.

    I would like the logo to be on the left, then next to it first the search header, the cart image, items in cart, checkout button all in one row, then main menu underneath (I have managed to customise this with pictures for Home, My Account, etc.) As you can see, the cart image, items in cart and checkout button is not in one line. Any help will be greatly appreciated!

    This is the code:

    <?php
    /**
    * Template designed by 12leaves.com
    * 12leaves.com - Free ecommerce templates and design services
    *
    * Common Template
    *
    * @package templateSystem
    * @copyright Copyright 2009-2010 12leaves.com
    * @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_header.php 4813 2006-10-23 02:13:53Z drbyte $
    */
    ?>

    <?php
    // Display all header alerts via messageStack:
    if ($messageStack->size('header') > 0) {
    echo $messageStack->output('header');
    }
    if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
    echo htmlspecialchars(urldecode($_GET['error_message']));
    }
    if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
    echo htmlspecialchars($_GET['info_message']);
    } else {

    }

    ?>


    <!--bof-header logo and navigation display-->
    <?php
    if (!isset($flag_disable_header) || !$flag_disable_header) {
    ?>

    <div id="headerWrapper">

    <!--bof-header ezpage links-->
    <div class="topper-menu float-right">
    <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
    <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
    <?php } ?>
    </div>
    <!--eof-header ezpage links-->


    <!--bof-navigation display-->
    <!--eof-navigation display-->

    <!--bof-branding display-->
    <div id="logoWrapper">
    <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
    </div>
    <div class="clearBoth"></div>
    <!--eof-branding display-->

    <!--eof-header logo and navigation display-->

    <!--bof-optional categories tabs navigation display-->
    <?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
    <!--eof-optional categories tabs navigation display-->

    <?php require($template->get_template_dir('tpl_top_nav.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_top_nav.php'); ?>


    </div>
    <?php } ?>

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,684
    Plugin Contributions
    11

    Default Re: Trying to edit header

    Most of this should have been done in the stylesheet rather than editing a file. You have messed up the <div> structure of the file.
    You'll probably need to reload the stock header and start again with the stylesheet.
    There are several tools you can use to see these changes. I use the firebug add-on for Firefox along with the html validator add-on.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

 

 

Similar Threads

  1. v139h Trying to edit header
    By barendfaber in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 11 Aug 2012, 04:04 PM
  2. Trouble Trying to edit header
    By AMP Hobby in forum General Questions
    Replies: 16
    Last Post: 30 Apr 2012, 05:04 AM
  3. v150 How to edit header text/images, also edit pages?
    By Gary Compton in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 Feb 2012, 10:01 PM
  4. Replies: 6
    Last Post: 5 Nov 2010, 06:58 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