Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Trying to have 600px banner logo in header

Trying to have 600px banner logo in header

Locked

Views: 731

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
1 Sep 2010, 10:54 PM
#1
euonym avatar

euonym

Zen Follower

Join Date:
Aug 2010
Posts:
116
Plugin Contributions:
0

Trying to have 600px banner logo in header

Using ver d. Trying to have a 600px banner/logo in the header. Not sure if I'm doing it wrong or I've got the graphic in the wrong place.

Here's what I have in zencart/includes/languages/english/classic/header.php:

<?php /** * @package languageDefines * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: header.php 2848 2006-01-14 09:47:08Z wilt $ */ // header text in includes/header.php define('HEADER_TITLE_CREATE_ACCOUNT', 'Create Account'); define('HEADER_TITLE_MY_ACCOUNT', 'My Account'); define('HEADER_TITLE_CART_CONTENTS', 'Shopping Cart'); define('HEADER_TITLE_CHECKOUT', 'Checkout'); define('HEADER_TITLE_TOP', 'Top'); define('HEADER_TITLE_CATALOG', 'Home'); define('HEADER_TITLE_LOGOFF', 'Log Out'); define('HEADER_TITLE_LOGIN', 'Log In'); // added defines for header alt and text define('HEADER_ALT_TEXT', 'Staffordshire Enamel Boxes are 100% Hand Painted in England'); define('HEADER_SALES_TEXT', ''); define('HEADER_LOGO_WIDTH', '600px'); define('HEADER_LOGO_HEIGHT', '110px'); define('HEADER_LOGO_IMAGE', 'enamels_top.gif'); // header Search Button/Box Search Button define('HEADER_SEARCH_BUTTON','Search'); define('HEADER_SEARCH_DEFAULT_TEXT','Enter search keywords here'); ?>

I also do not remember where I had entered the background image for the header, which I now need to remove or replace with the banner/logo. Whatever works.

To see the page: http://173.201.197.54/staffordshire-enamels/zencart/

Thanks!

2 Sep 2010, 10:49 AM
#2
stevesh avatar

stevesh

Black Belt

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

Re: Trying to have 600px banner logo in header

It looks like you have the image in the wrong place, since I get a 'page not found' when I try to access it directly. It should be in your template's /images folder.

2 Sep 2010, 2:25 PM
#3
euonym avatar

euonym

Zen Follower

Join Date:
Aug 2010
Posts:
116
Plugin Contributions:
0

Re: Trying to have 600px banner logo in header

Stevesh,

You are correct. I had the file in the wrong directory. The background image showed up when I put it there. I realize that a background image won't work. It will tile and if I make it larger to fill the 750px space, it won't push the rest of the content down and get partially covered.

So, back to:

// added defines for header alt and text
define('HEADER_ALT_TEXT', 'Staffordshire Enamel Boxes are 100% Hand Painted in England');
define('HEADER_SALES_TEXT', '');
define('HEADER_LOGO_WIDTH', '750px');
define('HEADER_LOGO_HEIGHT', '110px');
define('HEADER_LOGO_IMAGE', 'enamels_top.gif');

Where should the enamels_top.gif file be? It's now in the template's image folder with no luck. Am I calling it incorrectly?

2 Sep 2010, 3:36 PM
#4
euonym avatar

euonym

Zen Follower

Join Date:
Aug 2010
Posts:
116
Plugin Contributions:
0

Re: Trying to have 600px banner logo in header

Well, it's not elegant but I have it up as a non-repeating background, not as a standard image. It works, although it is not the "proper" way to do it.

2 Sep 2010, 3:43 PM
#5
stevesh avatar

stevesh

Black Belt

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

Re: Trying to have 600px banner logo in header

I don't think there's anything 'improper' about doing it that way. I think the only reason it's set up the way it is is so you can have a header background and a logo image. Most sites don't. Only downside is that your header (logo) isn't clickable to the home page.

2 Sep 2010, 5:48 PM
#6
euonym avatar

euonym

Zen Follower

Join Date:
Aug 2010
Posts:
116
Plugin Contributions:
0

Re: Trying to have 600px banner logo in header

I agree but with home links above and below the banner, it's less of an issue. Moving on the the next in a long series of challenges to solve. Thanks for your help.