Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2006
    Posts
    52
    Plugin Contributions
    0

    Default Header Image problem & link

    Hi,

    I've been messing around with this for a few days and dispite my best intentions, this bit is now driving me mad....!!

    If you look at the header image you'll see the size is wrong

    http://ownapieceofamerica.co.uk/name

    1. Where do I go to rectify this?
    2. The link is still there in the top left corner?

    I have checked the includes/languages/english/header.php so it looks like this:

    <?php
    /**
    * @package languageDefines
    * @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: header.php 2940 2006-02-02 04:29:05Z drbyte $
    */

    // header text in includes/header.php
    define('HEADER_TITLE_CREATE_ACCOUNT', 'Create Account');
    define('HEADER_TITLE_MY_ACCOUNT', 'My Account');
    define('HEADER_TITLE_CART_CONTENTS', 'Shopping Cart');
    define('HEADER_TITLE_CHECKOUT', 'Checkout');
    define('HEADER_TITLE_TOP', 'Top');
    define('HEADER_TITLE_CATALOG', 'Home');
    define('HEADER_TITLE_LOGOFF', 'Log Out');
    define('HEADER_TITLE_LOGIN', 'Log In');

    // added defines for header alt and text
    define('HEADER_SALES_TEXT', '');
    define('HEADER_LOGO_WIDTH', '750px');
    define('HEADER_LOGO_HEIGHT', '204px');
    define('HEADER_LOGO_IMAGE', 'header_bg.jpeg');

    // header Search Button/Box Search Button
    define('HEADER_SEARCH_BUTTON','Search');
    define('HEADER_SEARCH_DEFAULT_TEXT', 'Enter search keywords here');

    ?>

    Where oh where am I going wrong!!

    Thanks,
    atjhza

  2. #2
    Join Date
    Sep 2006
    Posts
    542
    Plugin Contributions
    0

    Default Re: Header Image problem & link

    In the stylesheet you have added your image to the logoWrapper this is not the place to do this, remove this

    #logoWrapper{
    background-image: url(../images/header_bg.jpg);
    background-repeat: repeat-x;
    background-color: #ffffff;
    height:204px;
    }
    and replace with this

    #logoWrapper{
    margin: 0em;
    padding: 0em;

    }

    Then open your template>common>tpl_header.php and replace the original code or write you own by adding hard code in your image in the logo id

    <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>

    then rename your header_bg.jpeg to header_bg.jpg

  3. #3
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Header Image problem & link

    I'm not sure I agree with usernamenone.

    The image in your /includes/templates/oapoa/images folder is already called header_bg.jpg. Thus, it would seem that all you need to do is change your header.php language file so that the 'HEADER_LOGO_IMAGE' define is put back to 'header_bg.jpg'

    ... or rename your /includes/templates/oapoa/images/header_bg.jpg to .jpeg
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Feb 2006
    Posts
    52
    Plugin Contributions
    0

    Default Re: Header Image problem & link

    Thanks Guys.

    I followed Dr Byte's advice and partially cured the issue (Dr - Cured.....get it!) but if you now look at the site, the content runs into the image. Any pointers for me please?
    http://www.zen-cart.com/forum/showthread.php?t=81022

    Thanks again.

  5. #5
    Join Date
    Feb 2006
    Posts
    52
    Plugin Contributions
    0

    Default Re: Header Image problem & link

    All sorted. Just amended the stylesheet.

    :-)

 

 

Similar Threads

  1. sidebox header change font & disable link
    By jharradine in forum Basic Configuration
    Replies: 6
    Last Post: 15 Apr 2010, 05:03 AM
  2. Download Link Problem & Gift Card Problem too...
    By Miss Tiina in forum General Questions
    Replies: 2
    Last Post: 14 Mar 2009, 03:58 PM
  3. "larger image" link & thumbnail link not working
    By tracyselena in forum General Questions
    Replies: 1
    Last Post: 7 Nov 2007, 08:03 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