Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1
    Join Date
    Oct 2007
    Posts
    4
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Oct 2007
    Posts
    289
    Plugin Contributions
    0

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

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

    Code:
    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:

    Code:
    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.
    [FONT=Microsoft Sans Serif]CSS Evangelist[/FONT]

  3. #3
    Join Date
    Oct 2007
    Posts
    4
    Plugin Contributions
    0

    Default 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:

    Code:
    <?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.

  4. #4
    Join Date
    Oct 2007
    Posts
    289
    Plugin Contributions
    0

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

    You mean you replaced:

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

    Code:
    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?
    [FONT=Microsoft Sans Serif]CSS Evangelist[/FONT]

  5. #5
    Join Date
    Oct 2007
    Posts
    289
    Plugin Contributions
    0

    Default 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.
    [FONT=Microsoft Sans Serif]CSS Evangelist[/FONT]

  6. #6
    Join Date
    Oct 2007
    Posts
    4
    Plugin Contributions
    0

    Default 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!

  7. #7
    Join Date
    Nov 2007
    Posts
    22
    Plugin Contributions
    0

    Default 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.

  8. #8
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default 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

  9. #9
    Join Date
    Nov 2007
    Posts
    22
    Plugin Contributions
    0

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

    Will the zen script automatically read from my template folder?

  10. #10
    Join Date
    Nov 2007
    Posts
    22
    Plugin Contributions
    0

    Default 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.

    Code:
    
    // 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?

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Need help edit Header_bg "Sales message goes here"
    By waynevincent in forum General Questions
    Replies: 1
    Last Post: 29 Aug 2008, 01:17 AM
  2. "Your Sales Message Goes Here" Help?
    By iicreations in forum General Questions
    Replies: 3
    Last Post: 22 Aug 2007, 02:20 PM
  3. Help with changing the "Sales Message Goes Here" text
    By ICEMINISTRIES in forum Basic Configuration
    Replies: 5
    Last Post: 19 Apr 2007, 03:23 PM
  4. help removing "sales message goes here"
    By ben harry in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Mar 2007, 02:58 PM
  5. "Sales message goes here & zen cart logo"
    By jorgebnuk in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Dec 2006, 08:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg