Thread: Header Issue

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    May 2007
    Location
    tampa, fl
    Posts
    24
    Plugin Contributions
    0

    Default Header Issue

    Here's the URL, http://www.pinecrestprinting.com/store/

    If you look at the header in IE it has a "X" on the left side, in Firefox this doesn't show up. I don't know how it got there (I've been working on this site for awhile and it was one of the first things I did). I'm assuming in some file somewhere I either put something in the wrong place or didn't put something in all together.

    I've used the search feature and all I can find is references to changing your header image or removing the original Zen Cart text. Any help on this would be greatly appreciated.

  2. #2

    Default Re: Header Issue

    Using firebug I see this

    Code:
    <div id="logo"><a href="http://www.pinecrestprinting.com/store/"><img alt="" src="includes/templates/classic/images/"/></a></div>
    Maybe edit out any unnecessary code out of includes/templates/YOUR_TEMPLATE/common/header.php

    Are you using another method to display the logo, such as through the stylesheet?

  3. #3
    Join Date
    May 2007
    Location
    tampa, fl
    Posts
    24
    Plugin Contributions
    0

    Default Re: Header Issue

    rainthebat, i appreciate the fast response. i looked in the common folder at the following files and couldn't find the code you posted, html_header.php and tpl_header.php. i do vaguely remember putting that code in there for some reason or another (it might have been after too many pints ). is there somewhere else that this might have been inserted? i'm sure as soon as i delete that it will solve my problem.

  4. #4
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Header Issue

    From what rainthebat is saying, it's in includes/templates/YOUR_TEMPLATE/common/header.php, not tpl_header or html_header. If you don't have a header.php file in includes/templates/YOUR_TEMPLATE/common/, look in includes/templates/classic/common/header.php or includes/templates/template_default/common/header.php for the text he indicated.

  5. #5

    Default Re: Header Issue

    Quote Originally Posted by afo View Post
    From what rainthebat is saying, it's in includes/templates/YOUR_TEMPLATE/common/header.php, not tpl_header or html_header.

    rainthebat was a little dumb on this one, yes tpl_header.php should be the right file to find the logo displaying code in.

    Sorry afo, I will try to be a little more careful on my posts in the future.

    Quote Originally Posted by hansonian
    couldn't find the code you posted
    The code will look a bit different than that, it will look more php'ish and less html'ish
    Last edited by rainthebat; 16 Jan 2008 at 05:39 PM.

  6. #6
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Header Issue

    I didn't double check the file, so I had no clue whether you were right or not.

    hansonian, open includes/templates/YOUR_TEMPLATE/common/tpl_header.php wth a good text editor like Crimson Editor or Notepad++ and search for includes/templates/classic/images/. You should be able to find it that way.

  7. #7
    Join Date
    May 2007
    Location
    tampa, fl
    Posts
    24
    Plugin Contributions
    0

    Default Re: Header Issue

    i looked at the tpl_header.php file and couldn't find anything in it. maybe i'm missing something. if someone else could look through this and let me know if they see the offending text i would appreciate it.

    <?php
    /**
    * Common Template - tpl_header.php
    *
    * this file can be copied to /templates/your_template_dir/pagename<br />
    * example: to override the privacy page<br />
    * make a directory /templates/my_template/privacy<br />
    * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br />
    * to override the global settings and turn off the footer un-comment the following line:<br />
    * <br />
    * $flag_disable_header = true;<br />
    *
    * @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_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-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
    <ul class="back">
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
    <?php
    } else {
    if (STORE_STATUS == '0') {
    ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
    <?php } } ?>

    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
    <?php }?>
    </ul>
    </div>
    <div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
    <br class="clearBoth" />
    </div>
    <!--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>
    <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
    <div id="taglineWrapper">
    <?php
    if (HEADER_SALES_TEXT != '') {
    ?>
    <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
    <?php
    }
    ?>
    <?php
    if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
    if ($banner->RecordCount() > 0) {
    ?>
    <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
    <?php
    }
    }
    ?>
    </div>
    <?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
    </div>
    <br class="clearBoth" />
    <!--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-->

    <!--bof-header ezpage links-->
    <?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 } ?>
    <!--eof-header ezpage links-->
    </div>
    <?php } ?>


    again any help is grealy appreciated and if you guys were in tampa i'd buy you a beer for the help.

  8. #8
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Header Issue

    In includes/languages/english/YOUR_TEMPLATE/header.php, see what's in this section:

    Code:
    // added defines for header alt and text
      define('HEADER_ALT_TEXT', 'Powered by Zen Cart :: The Art of E-Commerce');
      define('HEADER_SALES_TEXT', 'TagLine Here');
      define('HEADER_LOGO_WIDTH', '192px');
      define('HEADER_LOGO_HEIGHT', '64px');
      define('HEADER_LOGO_IMAGE', 'logo.gif');

  9. #9

    Default Re: Header Issue

    Your image is defined in the style sheet under say #logoWrapper as
    background-image: url(../images/header_bg.jpg);

    You can delete this text as a result of that configuration:

    Code:
    <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>
    that should get rid of the image that it cant find.

  10. #10
    Join Date
    May 2007
    Location
    tampa, fl
    Posts
    24
    Plugin Contributions
    0

    Default Re: Header Issue

    afo, this is what i have;

    // added defines for header alt and text
    define('HEADER_ALT_TEXT', '');
    define('HEADER_SALES_TEXT', '');
    define('HEADER_LOGO_WIDTH', '200px');
    define('HEADER_LOGO_HEIGHT', '70px');
    define('HEADER_LOGO_IMAGE', '');


    rainthebat i looked in my stylesheet file and don't see anything like that. i went under includes/templates/classic/stylesheet.css. is this the stylesheet you were referring too?

    i appreciate all the help you guys have given me on this.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. header issue
    By scottkawa in forum General Questions
    Replies: 2
    Last Post: 11 Sep 2012, 10:22 PM
  2. header issue
    By louisapple in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 6 May 2009, 09:42 PM
  3. header issue
    By icehokz in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 21 Mar 2008, 06:03 PM
  4. Header Issue
    By pap1723 in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 7 Jun 2007, 05:30 AM
  5. Header issue
    By active_electric in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Apr 2007, 01:48 AM

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