Thread: Logo too big

Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2010
    Posts
    9
    Plugin Contributions
    0

    Default Logo too big

    Hi.

    Recent install of Zen Cart, trying to get everything figured out. Running into a brick wall with the logo. For some reason the logo uses the default dimensions of the image, not the dimensions specified in header.php

    Web Address
    http://taylorhuston.dyndns.org/respo...iving/catalog/

    There you can see what I mean. The file I am editing is
    /includes/languages/english/responsible/header.php

    And I am 90% sure that i the right file because if I change anything in it, like say changing

    define('HEADER_SALES_TEXT', 'Tagline');

    to

    define('HEADER_SALES_TEXT', 'Taglinesssss');

    that change is reflected on my page. Also if i mistype or otherwise change

    define('HEADER_LOGO_IMAGE', 'logo.gif');

    the logo disappears all together. So I am pretty sure I am in the right php file, but the lines

    define('HEADER_LOGO_WIDTH', '150px');
    define('HEADER_LOGO_HEIGHT', '200px');

    Don't seem to do anything.

    Thoughts?

  2. #2
    Join Date
    Feb 2010
    Location
    Arizona
    Posts
    50
    Plugin Contributions
    0

    Default Re: Logo too big

    You may need to explicitly resample your logo image to the size you need, and experiment with it, if you want it 150x200 then resample it at those pixel dimensions in an image editor, like picasa or photoshop, there are many out there.

    when resizing the image, try it at a few resolutions as well as the size in pixels you require, and save the original, as an original, since you cannot resize to a lerger size, from a smaller size, without a lot of quality loss in the interpolation, so KEEP AN ORIGINAL SIZED archive somewhere.

    try 150px x 200 pix at 72 dpi, 150 dpi, 300 dpi, etc, to see which looks the best, you can affect the size of the image in Kb also by saving at a few jpeg qualities.

    CSS comment:
    #mainWrapper in that css, you have your page at 1000px, you may want to set that to 100%, so smaller screen resolutions won't get a truncated/cropped view, 100% will fill any screen resolution with your layout.

  3. #3
    Join Date
    Jun 2010
    Posts
    9
    Plugin Contributions
    0

    Default Re: Logo too big

    Well, I realize I can manually resize the logo file itself, but form what I read, I was under the impression that the two lines of code.

    define('HEADER_LOGO_WIDTH', '150px');
    define('HEADER_LOGO_HEIGHT', '200px');

    Were supposed to resize it, and since they are not I was wondering if there was something I was missing?

  4. #4
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Logo too big

    I would follow the resizing recommendations and also check that you are using the proper language override procedure.
    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.

  5. #5
    Join Date
    Jun 2010
    Posts
    9
    Plugin Contributions
    0

    Default Re: Logo too big

    So, if I have to manually resize the image, whcih I have no problem doing, then I am curious as to what the lines:

    define('HEADER_LOGO_WIDTH', '150px');
    define('HEADER_LOGO_HEIGHT', '200px');

    Are supposed to do? From everything I have read, they are supposed to resize the logo to those dimensions, which they are quite simply not doing.

  6. #6
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Logo too big

    So, if I have to manually resize the image, whcih I have no problem doing, then I am curious as to what the lines:

    define('HEADER_LOGO_WIDTH', '150px');
    define('HEADER_LOGO_HEIGHT', '200px');

    Are supposed to do? From everything I have read, they are supposed to resize the logo to those dimensions, which they are quite simply not doing
    If you use the correct file in the correct override directory they will resize the image.
    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.

  7. #7
    Join Date
    Jun 2010
    Posts
    9
    Plugin Contributions
    0

    Default Re: Logo too big

    Is there any way to check that I am using the right file? I mean, I am pretty sure I am. Like I said in my original post, the path for this file is:

    /includes/languages/english/responsible/header.php

    And if I change the

    Code:
    define('HEADER_SALES_TEXT', 'Tagline');
    to

    Code:
    define('HEADER_SALES_TEXT', 'Taglinesssss');
    it changes on my website, and if I change

    Code:
    define('HEADER_LOGO_IMAGE', 'logo.gif');
    to

    Code:
    define('HEADER_LOGO_IMAGE', 'logos.gif');
    it breaks my logo (since there is no logos.gif file in my images directory).

    But if, in that same header.php file, I change

    Code:
    define('HEADER_LOGO_WIDTH', '150px');
    define('HEADER_LOGO_HEIGHT', '200px');
    nothing happens on the page itself, no matter what dimensions I use, the logo is still using the dimensions of the logo.gif file.

    Like I said I can manually resize logo.gif, I am just curios as to why changing the dimensions in the header.php file aren't affecting anything.

 

 

Similar Threads

  1. How big is too big=page size
    By daltonkost in forum General Questions
    Replies: 7
    Last Post: 21 Jul 2010, 06:13 AM
  2. headerWrapper too big
    By LizzyB in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 14 Feb 2008, 11:29 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