Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Why change header logo width and height?

Why change header logo width and height?

Locked

Views: 1,886

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
5 Feb 2009, 9:55 PM
#1
clueless_in_berlin avatar

clueless_in_berlin

New Zenner

Join Date:
May 2008
Posts:
48
Plugin Contributions:
0

Why change header logo width and height?

I have successfully replaced the zen cart logo with my logo in the header by changing the following line in includes/languages/english/custom/header.php:

define('HEADER_LOGO_IMAGE', 'mylogo.jpg'

I wanted to modify the width and height of my logo by modifying the following two lines:

define('HEADER_LOGO_WIDTH', '192px');
define('HEADER_LOGO_HEIGHT', '64px');

I didn´t work. If I change the 192px and 64px to different numbers, it has no effect on how the image is displayed.

Am I doing something wrong? If not, what is the point of those two lines?

Also, how can I modify the displayed dimensions of the logo if I don´t want to change the actual logo file?

Thanks in advance for some help. :D

5 Feb 2009, 10:11 PM
#2
Kim avatar

Kim

Obaa-san

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

Re: Why change header logo width and height?

Are you trying to change the position of the logo?

5 Feb 2009, 10:23 PM
#3
clueless_in_berlin avatar

clueless_in_berlin

New Zenner

Join Date:
May 2008
Posts:
48
Plugin Contributions:
0

Re: Why change header logo width and height?

Thank for the quick response.

No, I am not trying to change the position of the logo. For now I am leaving it left justified.

The problem is, if I change the following two lines in the file includes/languages/english/custom/header.php

define('HEADER_LOGO_WIDTH', '192px');
define('HEADER_LOGO_HEIGHT', '64px');

to something like

define('HEADER_LOGO_WIDTH', '10px');
define('HEADER_LOGO_HEIGHT', '5px');

it doesn´t seem to change the way the logo is displayed.

Therefore I don´t understand what those two lines do. I was hoping to be able to adjust the width and height of the logo by changing those two lines.

If I use the firebug addon in Firefox browser, I can scroll over the logo and find similar lines of code that, when changed, subsequently change the size of the logo that is displayed by the browser, independent of the actual size of the file.

Am I making any sense? :shocking:

6 Feb 2009, 12:08 AM
#4
Kim avatar

Kim

Obaa-san

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

Re: Why change header logo width and height?

it doesn´t seem to change the way the logo is displayed.

They won't, but they will affect the way other elements in the header are positioned in certain browsers.