If you've just installed ZC, and are working in the STANDARD install, then the template that is being invoked is the CLASSIC template.
The images that are important to your header (where the LOGO sits), are located in includes/templates/classic/images.
Navigate to this folder in your FTP program, and you will see:-
- header_bg.jpg
- logo.gif
- scr_template_default.jpg
- tile_back.gif
The two you need to concern yourself with now, are:-
- header_bg.jpg
- logo.gif
(I strongly suggest you FTP these images to your hard drive and open them in an image viewer/editor. Look at their composition, and size in pixels (height and width). Then look at your ZC home page. Can you now see how the LOGO image is layered over the TOP of the BACKGROUND image).
The first one, - header_bg.jpg - is the BACKGROUND image for the header, and if you want your LOGO to occupy the whole header space, then this background image is not needed. Do not delete it from the images folder... it's presence is governed by the STYLESHEET (stylesheet.css) - more of that later.
A standard install of ZC sets the width of the template to a default of 750 pixels - which will apply to the header as well.
These widths are governed in the stylesheet, and if you are using the classic template, the appropriate stylesheets will be in:-
includes/templates/classic/css
Open up stylesheet.css for editing. Do this with a plain text editor, such as Notepad++, or Crimson Editor
Now, let's see how the stylesheet influences these images...
Around lines 175 to 185 of the stylesheet, you'll see the start of the styles applying to all the "wrappers". Find this one...
Code:
#logoWrapper{
background-image: url(../images/header_bg.jpg);
background-repeat: repeat-x;
background-color: #ffffff;
height:75px;
}
If you "comment out" the reference to the background-image, it will not display...
Code:
#logoWrapper{
/*background-image: url(../images/header_bg.jpg);*/
background-repeat: repeat-x;
background-color: #ffffff;
height:75px;
}
Now, if you look just ABOVE these lines of code you will see:-
Code:
/*wrappers - page or section containers*/
#mainWrapper {
background-color: #ffffff;
text-align: left;
width: 750px;
vertical-align: top;
border: 1px solid #9a9a9a;
}
Here, you see that the MAIN WRAPPER of the template is set to 750 pixels.
... and when you look at the LOGOWRAPPER height (see above), you'll see this is set to 75 pixels.
So, assuming you wanted to retain these dimensions, you would now create an image - called "logo.gif", with dimensions 750px wide and 75px deep.
You would load logo.gif up to the images folder in "classic" and OVERWRITE the existing logo.gif.
NOW...
If you want to change logo.gif to a JPEG (logo.jpg) - which you should do for a better quality image...
Then you are going to have to edit:-
includes/languages/english/classic/header.php
(... assuming of course, that you're using the classic template system).
Find the following code:-
Code:
// added defines for header alt and text
define('HEADER_ALT_TEXT', 'Powered by Zen Cart :: The Art of E-Commerce [home link]');
define('HEADER_SALES_TEXT', '<h1>Sales Message Goes Here</h1>');
define('HEADER_LOGO_WIDTH', '200px');
define('HEADER_LOGO_HEIGHT', '70px');
define('HEADER_LOGO_IMAGE', 'logo.gif');
and you will see the obvious... if you created a "logo.jpg" image that is 750px wide and 75px high, then your code here would look like this:-
Code:
// added defines for header alt and text
define('HEADER_ALT_TEXT', 'Powered by Zen Cart :: The Art of E-Commerce [home link]');
define('HEADER_SALES_TEXT', '<h1>Sales Message Goes Here</h1>');
define('HEADER_LOGO_WIDTH', '750px');
define('HEADER_LOGO_HEIGHT', '75px');
define('HEADER_LOGO_IMAGE', 'logo.jpg');
... and while you're about it, you may also want to get rid of "sales message goes here" and change the HEADER-ALT-TEXT to suit your site as well.