Forums / Templates, Stylesheets, Page Layout / Need Help Removing Logo.Gif and "Sales Message Goes Here"

Need Help Removing Logo.Gif and "Sales Message Goes Here"

Locked

Views: 8,699

Results 1 to 20 of 23
This thread is locked. New replies are disabled.
28 Oct 2007, 1:38 PM
#1
amandanoelle82 avatar

amandanoelle82

New Zenner

Join Date:
Oct 2007
Posts:
4
Plugin Contributions:
0

Need Help Removing Logo.Gif and "Sales Message Goes Here"

Hello,

I'd like to totally remove logo.gif and the "Sale Message Goes Here" line in the Classic template. I've looked in the FAQ and tried Googling, but I haven't anything that's helped me remove it. All I want is the header image at top.

  1. Which PHP file is this located in?
  2. Which code do I remove?

Thank you in advance for your help. I'm new to PHP and trying to chug along.

28 Oct 2007, 2:51 PM
#2
nimbuz avatar

nimbuz

Zen Follower

Join Date:
Oct 2007
Posts:
291
Plugin Contributions:
0

Re: Need Help Removing Logo.Gif and "Sales Message Goes Here"

/includes/languages/english/classic/header.php — Line: 22

define('HEADER_SALES_TEXT', '<h1>Sales Message Goes Here</h1>');

Remove "<h1>Sales Message Goes Here</h1>"

Just below it is the logo and header part:

define('HEADER_LOGO_WIDTH', '200px');
define('HEADER_LOGO_HEIGHT', '70px');
define('HEADER_LOGO_IMAGE', 'logo.gif');

Either change the logo image or remove it completely. But since you want a full width header image on top, just replace logo.gif with your header image and change the sizes below and you're set.

CSS Evangelist

28 Oct 2007, 3:19 PM
#3
amandanoelle82 avatar

amandanoelle82

New Zenner

Join Date:
Oct 2007
Posts:
4
Plugin Contributions:
0

Re: Need Help Removing Logo.Gif and "Sales Message Goes Here"

Nimbuz,

No such luck. Here's the page: http://www.greathealthytreats.com/store

And here's the current header.php code I have:

<?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');
define('HEADER_LOGO_WIDTH', '760px');
define('HEADER_LOGO_HEIGHT', '110px');
define('HEADER_LOGO_IMAGE', 'header_bg.jpg');



// header Search Button/Box Search Button
  define('HEADER_SEARCH_BUTTON','Search');
  define('HEADER_SEARCH_DEFAULT_TEXT', 'Enter search keywords here');

?>

If I remove logo.gif, I get the default Zen Cart logo in its place. I just want to remove that and the line "Sales Message Goes Here" completely.

28 Oct 2007, 3:33 PM
#4
nimbuz avatar

nimbuz

Zen Follower

Join Date:
Oct 2007
Posts:
291
Plugin Contributions:
0

Re: Need Help Removing Logo.Gif and "Sales Message Goes Here"

You mean you replaced:

define('HEADER_SALES_TEXT', '<h1>Sales Message Goes Here</h1>');

with:

define('HEADER_SALES_TEXT', '');

in /includes/languages/english/classic/header.php — Line: 22, and the text still won't go?

Noway. I just verified this locally and text does disappear for me. You might want to try again and see if you aren't missing something?

CSS Evangelist

28 Oct 2007, 3:37 PM
#5
nimbuz avatar

nimbuz

Zen Follower

Join Date:
Oct 2007
Posts:
291
Plugin Contributions:
0

Re: Need Help Removing Logo.Gif and "Sales Message Goes Here"

Lemme if it doesn't work still (would be shocking though), there's another workaround to this using CSS.

CSS Evangelist

28 Oct 2007, 4:51 PM
#6
amandanoelle82 avatar

amandanoelle82

New Zenner

Join Date:
Oct 2007
Posts:
4
Plugin Contributions:
0

Re: Need Help Removing Logo.Gif and "Sales Message Goes Here"

Ok, just noticed I was editing the wrong header.php file (I didn't realize this one was by its lonesome). Now, the header image does not fit in correctly (runs off side), but I'm sure I can figure that one out.

Thanks for all of your help!

21 Nov 2007, 6:09 PM
#7
jasperguy avatar

jasperguy

New Zenner

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

Re: Need Help Removing Logo.Gif and "Sales Message Goes Here"

Thanks this helped, wonder why this page is separate from the other classic folder? Just a little confusing. No reply necessary. Came what I was looking for from this thread.

My Zen Cart==
Version: 1.3.7.1

21 Nov 2007, 6:37 PM
#8
afo avatar

afo

Totally Zenned

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

Re: Need Help Removing Logo.Gif and "Sales Message Goes Here"

If you edit the files in the classic folders, all your changes will be overwritten with the next upgrade/update. You should create your own custom template, copy the files into those folders and make your changes there.

To create a very basic custom template (you can build from there), you need:

  • includes/languages/YOUR_TEMPLATE/english.php
  • includes/languages/english/YOUR_TEMPLATE/index.php
  • includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo)
  • includes/templates/YOUR_TEMPLATE/template_info.php
  • includes/templates/YOUR_TEMPLATE/common/tpl_header.php
  • includes/templates/YOUR_TEMPLATE/common/tpl_footer.php
  • includes/templates/YOUR_TEMPLATE/images/logo.gif
  • includes/templates/YOUR_TEMPLATE/css/stylesheet.css

Anywhere you see a /classic/ folder, you can create a folder for your custom template. You can copy the necessary files from either the /classic/ folder, the /template_default/ folder or the parent folder.

Edit includes/templates/YOUR_TEMPLATE/template_info.php to give your template identifying information so you'll recognize it in the admin under tools->template selection.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

21 Nov 2007, 6:57 PM
#9
jasperguy avatar

jasperguy

New Zenner

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

Re: Need Help Removing Logo.Gif and "Sales Message Goes Here"

Will the zen script automatically read from my template folder?

My Zen Cart==
Version: 1.3.7.1

21 Nov 2007, 7:12 PM
#10
jasperguy avatar

jasperguy

New Zenner

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

Re: Need Help Removing Logo.Gif and "Sales Message Goes Here"

Okay, I have created the new folders, this is my settings for the header, but I still get a "no image" in my header.

// added defines for header alt and text

// define('HEADER_ALT_TEXT', '<a href="http://jollyworks.ab.ca>Back to Jollyworks home" </a>');

 define('HEADER_SALES_TEXT', '<h2>Jollyworks Online Shopping</h2>');

// define('HEADER_LOGO_WIDTH', '200px');

// define('HEADER_LOGO_HEIGHT', '70px');

// define('HEADER_LOGO_IMAGE', 'logo.gif');

Do I have to remove the lines or can commenting out do the trick?

My Zen Cart==
Version: 1.3.7.1

21 Nov 2007, 7:19 PM
#11
afo avatar

afo

Totally Zenned

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

Re: Need Help Removing Logo.Gif and "Sales Message Goes Here"

To use your custom template, you have to select it from the drop down menu in the admin under tools->template selection.

Why did you comment out the image? What do you want in its place?

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

21 Nov 2007, 7:34 PM
#12
jasperguy avatar

jasperguy

New Zenner

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

Re: Need Help Removing Logo.Gif and "Sales Message Goes Here"

afo:

To use your custom template, you have to select it from the drop down menu in the admin under tools->template selection.

Why did you comment out the image? What do you want in its place?

The template section only displays one template.

Don't need a logo in it's place, using background image for the header.

https://www.jollyworks.ab.ca/zencart

Thanks for the help btw.

My Zen Cart==
Version: 1.3.7.1

21 Nov 2007, 8:30 PM
#13
afo avatar

afo

Totally Zenned

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

Re: Need Help Removing Logo.Gif and "Sales Message Goes Here"

Does your custom template have includes/templates/YOUR_TEMPLATE/template_info.php so Zen Cart can find it?

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

21 Nov 2007, 8:33 PM
#14
jasperguy avatar

jasperguy

New Zenner

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

Re: Need Help Removing Logo.Gif and "Sales Message Goes Here"

After I changed the template_info

Sure does, now I have lost all my sideboxes after override.

My Zen Cart==
Version: 1.3.7.1

21 Nov 2007, 8:35 PM
#15
afo avatar

afo

Totally Zenned

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

Re: Need Help Removing Logo.Gif and "Sales Message Goes Here"

jasperguy:

After I changed the template_info

Sure does, now I have lost all my sideboxes after override.

Yes, you have to go into the admin and set them for the new template.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

21 Nov 2007, 8:47 PM
#16
jasperguy avatar

jasperguy

New Zenner

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

Re: Need Help Removing Logo.Gif and "Sales Message Goes Here"

You must be lauging at me. Thanks for the great help.

My Zen Cart==
Version: 1.3.7.1

21 Nov 2007, 9:02 PM
#17
afo avatar

afo

Totally Zenned

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

Re: Need Help Removing Logo.Gif and "Sales Message Goes Here"

jasperguy:

You must be lauging at me. Thanks for the great help.

No, we all have that "where are my sideboxes?" moment. :laugh:

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

21 Nov 2007, 10:01 PM
#18
jasperguy avatar

jasperguy

New Zenner

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

Re: Need Help Removing Logo.Gif and "Sales Message Goes Here"

So I still got this logo issue I need help with, which file to alter?

The logo is still not gone, specially in IE, Firefox only has a link.

My Zen Cart==
Version: 1.3.7.1

21 Nov 2007, 11:11 PM
#19
jasperguy avatar

jasperguy

New Zenner

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

Re: Need Help Removing Logo.Gif and "Sales Message Goes Here"

Done, fixed. I went to tpl_header.php and commented out the logo section.

<div id="logoWrapper">
<!--

    <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>

 -->

My Zen Cart==
Version: 1.3.7.1

6 Feb 2008, 10:42 PM
#20
jaatendi avatar

jaatendi

New Zenner

Join Date:
Jan 2008
Posts:
9
Plugin Contributions:
0

Re: Need Help Removing Logo.Gif and "Sales Message Goes Here"

i am also looking to get rid of that part of the site, and i successfully got rid of "sales message goes here", but so far havent gotten rid of the logo.gif. how do i get rid of that?