Zen Cart Logo

Logo too big

Locked

Views: 1,196

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
29 Jun 2010, 5:29 AM
#1
taylorh avatar

taylorh

New Zenner

Join Date:
Jun 2010
Posts:
9
Plugin Contributions:
0

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/responsible-living/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?

29 Jun 2010, 8:25 AM
#2
10west avatar

10west

New Zenner

Join Date:
Feb 2010
Location:
Arizona
Posts:
50
Plugin Contributions:
0

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.

29 Jun 2010, 5:50 PM
#3
taylorh avatar

taylorh

New Zenner

Join Date:
Jun 2010
Posts:
9
Plugin Contributions:
0

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?

29 Jun 2010, 5:55 PM
#4
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,627
Plugin Contributions:
0

Re: Logo too big

I would follow the resizing recommendations and also check that you are using the proper language override procedure.

30 Jun 2010, 8:42 PM
#5
taylorh avatar

taylorh

New Zenner

Join Date:
Jun 2010
Posts:
9
Plugin Contributions:
0

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.

30 Jun 2010, 8:44 PM
#6
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,627
Plugin Contributions:
0

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.

30 Jun 2010, 9:38 PM
#7
taylorh avatar

taylorh

New Zenner

Join Date:
Jun 2010
Posts:
9
Plugin Contributions:
0

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

define('HEADER_SALES_TEXT', 'Tagline');

to

define('HEADER_SALES_TEXT', 'Taglinesssss');

it changes on my website, and if I change

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

to

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

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.