Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23
  1. #11
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    1,988
    Plugin Contributions
    15

    Default Re: Logo size not right in header

    I agree it is what it is.

    Have you tried adding the following to your stylesheet.

    #logo img {
    height:150px;
    width:150px;
    }

    because that will certainly work.

  2. #12
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    548
    Plugin Contributions
    0

    Default Re: Logo size not right in header

    Well if that will certainly work, why isnt it there already. There are probably 100's if not 1,000s of users who have experienced this problem.

    No answer necessary.

    thanks
    ZC v1.5.4 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

  3. #13
    Join Date
    Jun 2011
    Posts
    3
    Plugin Contributions
    0

    Default Re: Logo size not right in header

    I cannot get my logo to change either. I have tried

    1. Changing the height and width and saving as /includes/languages/english/mytheme/header.php

    2: Adding text below to /includes/templates/mytheme/css:


    #logo img {
    height:150px;
    width:150px;
    }

    any other ideas?

  4. #14
    Join Date
    Jul 2011
    Posts
    23
    Plugin Contributions
    0

    Default Re: Logo size not right in header

    Try changing the logowrapper size in stylesheet.css
    Code:
    #logoWrapper{
    	background-image: url(../images/header_bg.jpg);
    	background-repeat: repeat-x;
    	background-color: #000000;
    	height:CHANGETHISNUMBERpx;
    This changes the area allowed for the logo.

    My problem is I can't seem to get my logo to display at it's actual size. Should be 150px, keeps displaying at 250px, so I had to adjust the logowrapper to stop the category tabs etc cutting it off. looks all blurry.

  5. #15
    Join Date
    Jul 2011
    Posts
    23
    Plugin Contributions
    0

    Default Re: Logo size not right in header

    OK, make sure you are updating the correct header.php file and saving it in your CUSTOM folder in includes/languages/english/CUSTOM and also altered the stylesheet.css in includes/templates/CUSTOM/css I must have been saving my header.php file in the wrong folder as it's all working properly now.

  6. #16
    Join Date
    Jun 2012
    Location
    Los Angeles, CA
    Posts
    6
    Plugin Contributions
    0

    Default Re: Logo size not right in header

    Hello,

    I realize that this thread is a couple of years old but I ran into this issue and after a little trial and error found a "fix" that I thought I would submit in the hopes it would help someone else.

    The Problem:
    • The default logo sizes (HEADER_LOGO_WIDTH and HEADER_LOGO_HEIGHT) stored in \includes\languages\english\YOUR_CUSTOM_FOLDER_NAME\header.php are not being applied to the logo image (by default logo.gif). The issue seems to be in \includes\templates\YOUR_CUSTOM_FOLDER_NAME\common\tpl_header.php (where YOUR_CUSTOM_FOLDER_NAME here is the customized directory you have set up . . . if you have created it)


    The Fix:

    1. Open \includes\templates\YOUR_CUSTOM_FOLDER_NAME\common\tpl_header.php
    2. Find the following line:
      • Code:
        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>';
    3. Comment out that line so it looks like this:
      • Code:
        //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>';
    4. Cut and Paste this line in above the one you just commented out:
      • Code:
        echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '"><img src="' . DIR_WS_TEMPLATE .  'images/' . HEADER_LOGO_IMAGE . '" height="' . HEADER_LOGO_HEIGHT . '" width="'. HEADER_LOGO_WIDTH .'" alt="' . HEADER_ALT_TEXT . '" title="' . HEADER_ALT_TEXT . '"></a>' ?>
    5. Save the file and refresh the site in your browser and you should be good to go.


    Good Luck,

    Rich

  7. #17
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    548
    Plugin Contributions
    0

    Default Re: Logo size not right in header

    Funny you should chime in just when I was having a different issue with the logo image. Thanks for the follow up. Better late than never.

    Issue I am having now with the logo image is a small gap of 2-3px above the image. This makes putting a white background impossible without the viewer noticing the image was poorly placed.
    ZC v1.5.4 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

  8. #18
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    548
    Plugin Contributions
    0

    Default Re: Logo size not right in header

    Quote Originally Posted by richd View Post
    Hello,

    I realize that this thread is a couple of years old but I ran into this issue and after a little trial and error found a "fix" that I thought I would submit in the hopes it would help someone else.

    The Problem:
    • The default logo sizes (HEADER_LOGO_WIDTH and HEADER_LOGO_HEIGHT) stored in \includes\languages\english\YOUR_CUSTOM_FOLDER_NAME\header.php are not being applied to the logo image (by default logo.gif). The issue seems to be in \includes\templates\YOUR_CUSTOM_FOLDER_NAME\common\tpl_header.php (where YOUR_CUSTOM_FOLDER_NAME here is the customized directory you have set up . . . if you have created it)


    The Fix:

    1. Open \includes\templates\YOUR_CUSTOM_FOLDER_NAME\common\tpl_header.php
    2. Find the following line:
      • Code:
        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>';

    3. Comment out that line so it looks like this:
      • Code:
        //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>';

    4. Cut and Paste this line in above the one you just commented out:
      • Code:
        echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '"><img src="' . DIR_WS_TEMPLATE .  'images/' . HEADER_LOGO_IMAGE . '" height="' . HEADER_LOGO_HEIGHT . '" width="'. HEADER_LOGO_WIDTH .'" alt="' . HEADER_ALT_TEXT . '" title="' . HEADER_ALT_TEXT . '"></a>' ?>

    5. Save the file and refresh the site in your browser and you should be good to go.


    Good Luck,

    Rich
    Just tried your trick....big kudos!!!!!!!!!!!!!!!!!!!!!!!!!!!!! This ought to be in the next release.
    ZC v1.5.4 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

  9. #19
    Join Date
    Jun 2012
    Location
    Los Angeles, CA
    Posts
    6
    Plugin Contributions
    0

    Default Re: Logo size not right in header

    I'm just happy it helped someone!

    --Rich

  10. #20
    Join Date
    Mar 2013
    Location
    Sydney, Australia
    Posts
    140
    Plugin Contributions
    0

    Default Re: Logo size not right in header

    Quote Originally Posted by richd View Post
    I'm just happy it helped someone!

    --Rich
    Yep, worked for me. Thanks Rich !

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Logo on right side of header
    By Pablo in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 29 Jun 2011, 02:59 AM
  2. Header/logo Size.
    By jimdidriksen in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 14 Oct 2007, 03:26 PM
  3. Moving header logo to right hand side
    By e-hol.co.uk in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 28 Jul 2006, 05:02 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR