Zen Cart Logo
Forums / General Questions / Logo Size 100%

Logo Size 100%

Locked

Views: 1,293

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
20 May 2009, 9:35 AM
#1
crapples avatar

crapples

New Zenner

Join Date:
May 2009
Posts:
2
Plugin Contributions:
0

Logo Size 100%

I've setup my own logo no problem, however the image is 1920 x 300, i want to set this at 100% so when customers are using a smaller resolution it will still display the full image.

Does anyone know how to do this? editing the header.php with define('HEADER_LOGO_WIDTH', 100%'');
define('HEADER_LOGO_HEIGHT', '');

does nothing :( Please help.

Also when checking out the source code the image is <img src="includes/templates/pretty_in_pink/images/npjl5.jpg" alt="" width="1920" height="188" /> which is correct however not the width, needs to be 100%

26 May 2009, 10:36 AM
#2
crapples avatar

crapples

New Zenner

Join Date:
May 2009
Posts:
2
Plugin Contributions:
0

Re: Logo Size 100%

Found an error in the source code.

HEADER_LOGO_WIDTH, HEADER_LOGO_HEIGHT
are not in tpl_header.php. Adding these two attributes allows the header file to display 100% and not original size of banner.

FIXED!!

26 May 2009, 2:44 PM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Logo Size 100%

There's no bug...

Have you looked at:

includes/languages/english/header.php

If you edit this file, save the edited copy to your template over-ride folder.

12 Jun 2009, 3:24 PM
#4
lightningstrikes avatar

lightningstrikes

New Zenner

Join Date:
Jun 2009
Posts:
6
Plugin Contributions:
0

Re: Logo Size 100%

Hi,

I'm pretty new to Zen Cart, but I think I agree with Crapples, it looks like a bug to me.

HEADER_LOGO_WIDTH is defined in includes/languages/english/header.php (as schoolboy says), but it is not used anywhere.

The line where it would/should be used is tpl_header.php (line 72, Zen Cart 1.3.8a):

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

Anyone agree / is there something I've missed?

Thanks

Damian