Forums / Templates, Stylesheets, Page Layout / Logo size not right in header

Logo size not right in header

Views: 10,388

Results 1 to 20 of 23
29 Apr 2009, 2:54 AM
#1
luvingmamma avatar

luvingmamma

New Zenner

Join Date:
Aug 2007
Location:
Troy, MI
Posts:
80
Plugin Contributions:
0

Logo size not right in header

I have the newest vs of zen
comstock template

I have adjusted this everyway I can think of and it will not adjust the logo size.

Please help!

https://www.greengoodnessdiaperservice.com

29 Apr 2009, 3:09 AM
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Logo size not right in header

luvingmamma:

I have the newest vs of zen
comstock template

I have adjusted this everyway I can think of and it will not adjust the logo size.

Please help!

https://www.greengoodnessdiaperservice.com

did you change the setting(s) in

includes/languages/english/comstock/header.php

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

29 Apr 2009, 3:15 AM
#3
luvingmamma avatar

luvingmamma

New Zenner

Join Date:
Aug 2007
Location:
Troy, MI
Posts:
80
Plugin Contributions:
0

Re: Logo size not right in header

clydejones:

did you change the setting(s) in

includes/languages/english/comstock/header.php

you know I did- but i made an error and went back to my saved version and didn't catch that...

Saved me again Clyde! thank you...

I am still fine tuning but looks WAY better now!

29 Apr 2009, 3:27 AM
#4
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Logo size not right in header

luvingmamma:

you know I did- but i made an error and went back to my saved version and didn't catch that...

Saved me again Clyde! thank you...

I am still fine tuning but looks WAY better now!

glad to help

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

15 Apr 2011, 3:12 AM
#5
kwon avatar

kwon

New Zenner

Join Date:
Apr 2011
Posts:
5
Plugin Contributions:
0

Re: Logo size not right in header

I changed the settings in that file but my logo still stays cut in half by the categories below. The picture is 250x80 and the settings are the same. Any idea?

Thanks in advance.

15 Apr 2011, 3:26 AM
#6
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Logo size not right in header

link to your site?

7 May 2011, 3:34 AM
#7
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: Logo size not right in header

You know.....I have tried all of the archived fixes to change the logo size short of actually modifying my image in Photoshop.

None of them work. Its not a case of modifying files in wrong directory either. Been there done that.

Header.php does nothing
english.php does nothing.
tpl.header does nothing.

WTF?

Why is it that such a simple thing is such a complicated obstacle? I actually deleted the width and height in header file and nothing changed. I know I was in the right file because I renamed the logo file and when i did, the logo disappeared from the website.

If we dont need those two lines why are they even there?

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

7 May 2011, 3:44 AM
#8
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Logo size not right in header

Are you using free or modified template?

If so sometimes the logo w/h is also set in stylesheet.
**
NOTE: When making a post, be sure to include relevant information such as:**
If you're encountering display/layout problems, post your site URL* so it can be seen in action.

7 May 2011, 8:53 AM
#9
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Logo size not right in header

pixelpadre:

You know.....I have tried all of the archived fixes to change the logo size short of actually modifying my image in Photoshop.

Unless you're trying to do something other than I think, that's what you want to do anyway. Having Zencart resize your images often results in squished or otherwise mangled images.

When I set up Zencart, I set the width of mainWrapper, then decide how high I want the header to be, then create or resize the header/logo image to fit.

7 May 2011, 2:12 PM
#10
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: Logo size not right in header

rbarbour:

Are you using free or modified template?

If so sometimes the logo w/h is also set in stylesheet.

NOTE: When making a post, be sure to include relevant information such as:
If you're encountering display/layout problems, post your site URL* so it can be seen in action.

My Point here is that all of these files have variables to change the width height dimensions of the logo. But when you change them, nothing happens.

I have tried default template and custom. Made no difference.

Bottom line here is that we have to change the logo in photoshop in order to adjust the logo size. In this day and age of CSS, it seems ludicrous that it cant be tweaked thru php or css.

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

7 May 2011, 7:17 PM
#11
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

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.

8 May 2011, 12:38 AM
#12
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

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.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

27 Jul 2011, 5:58 AM
#13
prabb avatar

prabb

New Zenner

Join Date:
Jun 2011
Posts:
3
Plugin Contributions:
0

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?

17 Aug 2011, 1:09 PM
#14
heresy_miniatures avatar

heresy_miniatures

New Zenner

Join Date:
Jul 2011
Posts:
59
Plugin Contributions:
0

Re: Logo size not right in header

Try changing the logowrapper size in stylesheet.css

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

17 Aug 2011, 1:35 PM
#15
heresy_miniatures avatar

heresy_miniatures

New Zenner

Join Date:
Jul 2011
Posts:
59
Plugin Contributions:
0

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.

27 Sep 2013, 4:16 PM
#16
richd avatar

richd

New Zenner

Join Date:
Jun 2012
Location:
Los Angeles, CA
Posts:
6
Plugin Contributions:
0

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:
    - ```
    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:
        - ```
//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>';
  1. Cut and Paste this line in above the one you just commented out:
    - ```
    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
29 Sep 2013, 10:23 PM
#17
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

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.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

29 Sep 2013, 10:54 PM
#18
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: Logo size not right in header

richd:

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
  1. Find the following line:

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. Comment out that line so it looks like this:
> - >
- ```
//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>';
  1. Cut and Paste this line in above the one you just commented out:

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

>
> 
>
6. 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.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

30 Sep 2013, 9:04 PM
#19
richd avatar

richd

New Zenner

Join Date:
Jun 2012
Location:
Los Angeles, CA
Posts:
6
Plugin Contributions:
0

Re: Logo size not right in header

I'm just happy it helped someone!

--Rich

4 Feb 2014, 1:46 AM
#20
annie_zaz avatar

annie_zaz

Zen Follower

Join Date:
Mar 2013
Location:
Sydney, Australia
Posts:
140
Plugin Contributions:
0

Re: Logo size not right in header

richd:

I'm just happy it helped someone!

--Rich

Yep, worked for me. Thanks Rich !