Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Logo / header change not working

Logo / header change not working

Locked

Views: 4,253

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
19 Dec 2007, 9:40 PM
#1
hedera avatar

hedera

Zen Follower

Join Date:
Nov 2007
Posts:
128
Plugin Contributions:
0

Logo / header change not working

I've carefully read all the tutorials on overrides, and wanted, of course, to change the logo in the main header. I had it working, then I tried to change it to use a different logo image, but the change isn't working. Here's the issue:

I'd like to use a very large logo, 982 x 82 pixels, which contains the text we want to display as our store title. I'd like this centered, and I'd like NOT to have the HEADER_SALES_TEXT variable show.

Our custom header.php contains this code:

// added defines for header alt and text
// modified to use LifeRing store logo.jpg
define('HEADER_ALT_TEXT', 'The LifeRing Online Store');
define('HEADER_SALES_TEXT', 'The LifeRing Online Store');
define('HEADER_LOGO_WIDTH', '982px');
define('HEADER_LOGO_HEIGHT', '82px');
define('HEADER_LOGO_IMAGE', 'store_logo.jpg');

Since I don't want HEADER_SALES_TEXT I removed the line; but then ZC displays "HEADER_SALES_TEXT"; not a good option. How do I make it go away?

As instructed in "How do I change "Powered by Zen Cart" and add/position a new logo?", I placed the store_logo.jpg in the /ZenCart/includes/templates/LifeRing/images directory; but the site isn't finding it. Also, we formerly had much bolder text for "The LifeRing Online Store" - what did I do wrong there?

You can check the site at http://67.199.28.10/ZenCart/ and see (we're building a replacement for a currently working eCommerce site and are working from the IP address until we're ready to swing the DNS).

Possible issue: we want the site fixed width, and I've changed the mailWrapper to a fixed width of 900 pixels; is that a problem if the logo is 982 pixels wide?

20 Dec 2007, 12:40 PM
#2
madmumbler avatar

madmumbler

Zen Follower

Join Date:
Dec 2005
Location:
SWFL
Posts:
450
Plugin Contributions:
0

Re: Logo / header change not working

As for removing the text, you cannot remove the entire line or it will trigger the error. Do it like this:

// added defines for header alt and text
// modified to use LifeRing store logo.jpg
define('HEADER_ALT_TEXT', 'The LifeRing Online Store');
define('HEADER_SALES_TEXT', '');

Since I don't want HEADER_SALES_TEXT I removed the line; but then ZC displays "HEADER_SALES_TEXT"; not a good option. How do I make it go away?

Remove everything between the ''.

re: logo not changing -- Make sure you're refreshing your page. Sometimes you have to flush the cache. Also, make SURE you're uploading the image to the proper template image directory. Very easy to dump it in the main image folder or the wrong template image folder. Also, you might need to delete the original from your server before uploading the new one.

And of course, make sure you have the template set in Admin to your new template.

As far as an oversized logo, remember that there are still a LOT of people using a width of 800. You'll irritate them making them scroll sideways to the right. I would suggest using a smaller width logo, matching the background to a background in the logo so it blends but is flexible, and then using a flexible % instead of a fixed width. That way, if they have a smaller resolution, they won't have the "off the page" problem.

I'm sure others will have other suggestions too.

HTH,

20 Dec 2007, 1:25 PM
#3
hakeema avatar

hakeema

New Zenner

Join Date:
Dec 2007
Posts:
6
Plugin Contributions:
0

Re: Logo / header change not working

madmumbler:

Make sure you're refreshing your page. Sometimes you have to flush the cache. Also, make SURE you're uploading the image to the proper template image directory. Very easy to dump it in the main image folder or the wrong template image folder. Also, you might need to delete the original from your server before uploading the new one.
HTH,

Good morning,

I don't mean to jump in. What would be the correct place to upload your own images?

Hakeema

20 Dec 2007, 3:30 PM
#4
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Logo / header change not working

includes/templates/YOUR_TEMPLATE/images/

20 Dec 2007, 6:05 PM
#5
hedera avatar

hedera

Zen Follower

Join Date:
Nov 2007
Posts:
128
Plugin Contributions:
0

Re: Logo / header change not working

Thanks for the suggestions, madmumbler - I actually realized that about removing the text between the quotes after I posted this. Dumb.

As a matter of fact my client (who is also working on the site in parallel, don't ask) managed to get the wide logo to show - by making the page 980px wide! I have myself raised the issue of people with 800x600 displays but it didn't seem to make an impression, I'll mention it again - I myself don't really have a feel for who uses 800x600 displays but you obviously do. Since I think he created the wide logo (which really does look nice) maybe he can shrink it somehow...