Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Change height of header image - simplest way?

Change height of header image - simplest way?

Locked

Views: 1,662

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
13 Jul 2006, 9:53 AM
#1
pcmt avatar

pcmt

New Zenner

Join Date:
Jun 2006
Location:
Manchester UK
Posts:
59
Plugin Contributions:
0

Change height of header image - simplest way?

I want to stay as close as possible to the default install, but want a higher header image. What is the best and simplest way to adjust the height of the table that holds this image? I don't really want to have to create a new template.

Many thanks,

Patrick

13 Jul 2006, 10:22 PM
#2
Kim avatar

Kim

Obaa-san

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

Re: Change height of header image - simplest way?

The dimensions are in the header,php file where you change the logo.

14 Jul 2006, 11:25 PM
#3
pcmt avatar

pcmt

New Zenner

Join Date:
Jun 2006
Location:
Manchester UK
Posts:
59
Plugin Contributions:
0

Re: Change height of header image - simplest way?

Kim:

The dimensions are in the header,php file where you change the logo.

I presume you mean tpl_header.php in template_default/common/ - but I don't see any vertical height for the header image section.

This should be the simplest thing to do. All I want is to alter the height of the part that contains the header background image, but thus far all I've done is spent hours reading the Wiki, this forum, looking through the files, etc etc, and still I'm no nearer doing this simple thing.

14 Jul 2006, 11:58 PM
#4
lloyddobbler avatar

lloyddobbler

New Zenner

Join Date:
Apr 2006
Location:
Los Angeles, CA
Posts:
27
Plugin Contributions:
0

Re: Change height of header image - simplest way?

pcmt:

I presume you mean tpl_header.php in template_default/common/ - but I don't see any vertical height for the header image section.

This should be the simplest thing to do. All I want is to alter the height of the part that contains the header background image, but thus far all I've done is spent hours reading the Wiki, this forum, looking through the files, etc etc, and still I'm no nearer doing this simple thing.

Hey, pcmt.

Actually, Kim was talking about the header.php file - it's used to define all the variables used in the header (or at least some of the variables - I'm still pretty new at this myself). :smile:

You can find it in "/includes/languages/english [or whatever language you're using] /header.php".

Go in, and change away.

Best of luck!

Oh, PS - I'm finding it's kind-of a steep, do-it-yourself learning curve, true, and I have some issues with that approach to things...it's EXTREMELY frustrating at times. But such is the open source movement. Someone will eventually come out with a book that will really help...for a month or so (until the software changes again). :wink2:

I've found it best to just dig in, read as much as you can, and ask questions when you need to - you'll know this thing insides and outs by the time you're done.

Now it's off to post another question for me...

15 Jul 2006, 2:13 PM
#5
pcmt avatar

pcmt

New Zenner

Join Date:
Jun 2006
Location:
Manchester UK
Posts:
59
Plugin Contributions:
0

Re: Change height of header image - simplest way?

Okay, I see. Thanks for that. So the logo forces the size. I've just begun with ZenCart, and am finding out how editing the default means rooting around in all sorts of different places.

Regards,

Patrick

16 Jul 2006, 5:27 AM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Change height of header image - simplest way?

I notice you saying "editing the default."

It's never a good idea to edit the default directly, as any changes you make will be completely erased when you next upgrade the cart version.

What you should be doing is editing a copy of the default in a /your_custom_template/ folder that you create. See the faq's on making a template for guidance.