Forums / Templates, Stylesheets, Page Layout / Unable to change logo to .png

Unable to change logo to .png

Locked

Views: 2,667

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
10 Feb 2010, 2:42 AM
#1
bigbadjesus avatar

bigbadjesus

New Zenner

Join Date:
Dec 2009
Posts:
3
Plugin Contributions:
0

Unable to change logo to .png

I have a custom theme that someone already made for my client called "cherry_zen." My client wants this layout to be adjusted some, so I made a copy of the template and renamed it egm_zen. I also did the same thing for the

/includes/languages/english/cherry_zen/ folder
and the /includes/languages/cherry_zen/ folder

I edited the header.php file in both, as well as the header.php in /english/ so that it reflects the logo.png filename in my theme. However, in the html produces when you visit the site, instead of

<div id="logo"><a href="http://www.egmarshall.com/"><img src="includes/templates/egm_zen/images/logo.png" alt="E.G. Marshall & Associates" title=" E.G. Marshall & Associates " /></a></div>

I get

<div id="logo"><a href="http://www.egmarshall.com/"><img src="includes/templates/template_default/images/logo.png" alt="E.G. Marshall & Associates" title=" E.G. Marshall & Associates " /></a></div>
/languages/egm_zen/

<?php
/**
 * @package languageDefines
 * @copyright Copyright 2003-2006 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 2940 2006-02-02 04:29:05Z drbyte $
 */

// 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', 'E.G. Marshall & Associates');
  define('HEADER_SALES_TEXT', '');
  define('HEADER_LOGO_WIDTH', '725');
  define('HEADER_LOGO_HEIGHT', '287');
  define('HEADER_LOGO_IMAGE', 'logo.png');

// header Search Button/Box Search Button
  define('HEADER_SEARCH_BUTTON','Search');
  define('HEADER_SEARCH_DEFAULT_TEXT', 'Search');

?>
/languages/english/egm_zen/

<?php
/**
 * @package languageDefines
 * @copyright Copyright 2003-2006 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 2940 2006-02-02 04:29:05Z drbyte $
 */

// 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', 'E.G. Marshall & Associates');
  define('HEADER_SALES_TEXT', '');
  define('HEADER_LOGO_WIDTH', '725');
  define('HEADER_LOGO_HEIGHT', '287');
  define('HEADER_LOGO_IMAGE', 'logo.png');

// header Search Button/Box Search Button
  define('HEADER_SEARCH_BUTTON','Search');
  define('HEADER_SEARCH_DEFAULT_TEXT', 'Search');

?>

I do not understand what is wrong here. (I changed the english/header.php file back to .gif because it wasn't affecting the produced html)

10 Feb 2010, 3:48 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Unable to change logo to .png

Where is your png file located?

Zen-Venom Get Bitten

10 Feb 2010, 8:18 AM
#3
bigbadjesus avatar

bigbadjesus

New Zenner

Join Date:
Dec 2009
Posts:
3
Plugin Contributions:
0

Re: Unable to change logo to .png

under the template's folder in images (/includes/templates/egm_zen/images/logo.png)

10 Feb 2010, 9:35 AM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Unable to change logo to .png

What do you get in the page source when the file reverts to gif?

20 years a Zencart User

10 Feb 2010, 11:03 AM
#5
stevesh avatar

stevesh

Black Belt

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

Re: Unable to change logo to .png

Your site is still using the cherry_zen template. You need to select the new one in Admin - Tools - Template Selection.

11 Feb 2010, 1:45 AM
#6
bigbadjesus avatar

bigbadjesus

New Zenner

Join Date:
Dec 2009
Posts:
3
Plugin Contributions:
0

Re: Unable to change logo to .png

stevesh:

Your site is still using the cherry_zen template. You need to select the new one in Admin - Tools - Template Selection.

Ah, indeed it was. Thank you. Such a silly mistake.