Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,374
    Plugin Contributions
    4

    Default Which file should I use?

    I searched for header.php, (missing in the template when I followed instructions).
    Search returned several hits, but I am unsure about these:


    1. lang.header.php in /includes/language/english
    2. tpl_header.php in /includes/templates/responsive_classic/common
    3. in the last location there is also html_header.php


    So, which one, please?

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,292
    Plugin Contributions
    125

    Default Re: Which file should I use?

    Please provide a link to the help file you are referring to that just specified "header.php" without a path.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,374
    Plugin Contributions
    4

    Default Re: Which file should I use?

    SOLVED.

    I had already uploaded the image, so I just needed the .php file to process it.
    I unzipped a raw version of 1.58a and launched the search function of my file manager (Dolphin, I use KDE Plasma and Debian 11), sorry no offense meant if you are using something else, the results are above, I selected first option, its name is lang.header.php, not exactly header.php , thus the confusion, but analyzing the contents I could figure out that it was the correct one, tested on test site OK, uploaded to live site, and bingo!

  4. #4
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,374
    Plugin Contributions
    4

    Default Re: Which file should I use?

    Quote Originally Posted by swguy View Post
    Please provide a link to the help file you are referring to that just specified "header.php" without a path.
    Code:
    I copied the file to ease my jpb.
    Here is text:
    
    Storefront Header
    
    By default, Zen Cart uses includes/templates/YOURTEMPLATE/images/logo.gif for the filename of the logo image, but you can use your own filename for the logo.
    
    NOTE: If your logo is already available as a .gif image, it’s faster to just upload your logo by naming the file as logo.gif and replacing the logo.gif file on the server. Then refresh your browser cache (CTRL+R) to see it on your site. You may still want to update the image dimensions listed in the following instructions.
    
    Using an image editor, create your new logo and save it to includes/templates/YOURTEMPLATE/images/yourname and upload it to your server.
    
    The name yourname will also include a file extension, such as .png, .jpg, etc.
    
    After creating your logo you can adjust the alt text, width, height, and image name in includes/languages/english/YOURTEMPLATE/header.php
    
    NOTE: If you don’t have the file includes/languages/english/YOURTEMPLATE/header.php, then copy includes/languages/english/header.php to includes/languages/english/YOURTEMPLATE/header.php before editing. See What if I don’t have a file that some instructions mention?
    
    For the purpose of this example, let’s assume yourname is newlogo.png, and that the logo is 200px wide and 80px tall.
    
    define('HEADER_ALT_TEXT', 'My new alt text');
    define('HEADER_LOGO_WIDTH', '200'); // this is the number of pixels
    define('HEADER_LOGO_HEIGHT', '80'); // this is the number of pixels
    define('HEADER_LOGO_IMAGE', 'newlogo.png');
    
    Save this file and upload it to your server.
    
    By default, the logo is left aligned. Changing the alignment involves making a modification to your includes/templates/YOURTEMPLATE/css/stylesheet.css.
    
    Open the file and find the following:
    
    #logo, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {float: left;}
    
    Since this is a collection of several “selectors” (#logo, .centerBoxContents, etc) and in order not to interfere with the layout of other sections, split this into two separate statements and create a new selector/definition below it, like this:
    
    .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {float: left;}
    
    #logo {float: left;}
    
    To center the logo use text-align: center;

  5. #5
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,374
    Plugin Contributions
    4

    Default Re: Which file should I use?

    Quote Originally Posted by swguy View Post
    Please provide a link to the help file you are referring to that just specified "header.php" without a path.
    File was not in YOUR TEMPLATE as instructions post, and the name was not exact either, so confusing.

    Here is text:

    Code:
    Storefront Header
    
    By default, Zen Cart uses includes/templates/YOURTEMPLATE/images/logo.gif for the filename of the logo image, but you can use your own filename for the logo.
    
    NOTE: If your logo is already available as a .gif image, it’s faster to just upload your logo by naming the file as logo.gif and replacing the logo.gif file on the server. Then refresh your browser cache (CTRL+R) to see it on your site. You may still want to update the image dimensions listed in the following instructions.
    
    Using an image editor, create your new logo and save it to includes/templates/YOURTEMPLATE/images/yourname and upload it to your server.
    
    The name yourname will also include a file extension, such as .png, .jpg, etc.
    
    After creating your logo you can adjust the alt text, width, height, and image name in includes/languages/english/YOURTEMPLATE/header.php
    
    NOTE: If you don’t have the file includes/languages/english/YOURTEMPLATE/header.php, then copy includes/languages/english/header.php to includes/languages/english/YOURTEMPLATE/header.php before editing. See What if I don’t have a file that some instructions mention?
    
    For the purpose of this example, let’s assume yourname is newlogo.png, and that the logo is 200px wide and 80px tall.
    
    define('HEADER_ALT_TEXT', 'My new alt text');
    define('HEADER_LOGO_WIDTH', '200'); // this is the number of pixels
    define('HEADER_LOGO_HEIGHT', '80'); // this is the number of pixels
    define('HEADER_LOGO_IMAGE', 'newlogo.png');
    
    Save this file and upload it to your server.
    
    By default, the logo is left aligned. Changing the alignment involves making a modification to your includes/templates/YOURTEMPLATE/css/stylesheet.css.
    
    Open the file and find the following:
    
    #logo, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {float: left;}
    
    Since this is a collection of several “selectors” (#logo, .centerBoxContents, etc) and in order not to interfere with the layout of other sections, split this into two separate statements and create a new selector/definition below it, like this:
    
    .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {float: left;}
    
    #logo {float: left;}
    
    To center the logo use text-align: center;
    Last edited by ckosloff; 17 May 2023 at 11:43 PM.

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,292
    Plugin Contributions
    125

    Default Re: Which file should I use?

    OK I think it's improved now both to remove ambiguity and to reflect the update of 1.5.8.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  7. #7
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,374
    Plugin Contributions
    4

    Default Re: Which file should I use?

    Thank you

 

 

Similar Threads

  1. Which shipping or payment module I should use?
    By futurist71 in forum Addon Shipping Modules
    Replies: 1
    Last Post: 16 Jul 2011, 11:03 AM
  2. Which Paypal method should I use?
    By atmosx in forum General Questions
    Replies: 4
    Last Post: 14 Dec 2009, 12:49 PM
  3. Which kind of forum should I use?
    By waterlin in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Apr 2009, 03:38 PM
  4. Which CAPTCHA mod should I use?
    By hamspots in forum General Questions
    Replies: 1
    Last Post: 8 Feb 2009, 07:01 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR