Thread: Headers

Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2013
    Posts
    18
    Plugin Contributions
    0

    red flag Headers

    Name:  Header.PNG
Views: 334
Size:  51.9 KB

    Sorry for so many questions but what .php or .html file(s) do I need to edit to remove the <img> tag for the ZenCart logo, the h1 for the "Sales Message" and change the parameters (width and height) for the header image. Thanks!

  2. #2
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Headers

    Quote Originally Posted by partinrl View Post
    Sorry for so many questions but what .php or .html file(s) do I need to edit to remove the <img> tag for the ZenCart logo, the h1 for the "Sales Message" and change the parameters (width and height) for the header image. Thanks!
    The define statements are located at /includes/languages/english/header.php

    If you are going to make changes I suggest coping that file to /includes/languages/english/YOUR_TEMPLATE_NAME

    The actual code is located at /includes/templates/template_default/common/tpl_header.php

    Again if making changes I suggest coping that file to /includes/templates/YOUR_TEMPLATE_NAME/common

    You can also make changes to your stylesheet.css where you can control the visual design aspects of elements

  3. #3
    Join Date
    Mar 2013
    Posts
    18
    Plugin Contributions
    0

    Default Re: Headers

    Thanks, what about actual <img></img> tag that is inserting it. If I try and remove it via the stylesheet or othermeans it shows up with the alt img txt so I need to pull it out by the root if you know what I mean.

  4. #4
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Headers

    Quote Originally Posted by partinrl View Post
    it shows up with the alt img txt
    Quote Originally Posted by rbarbour View Post
    The define statements are located at /includes/languages/english/header.php
    PHP Code:
    define('HEADER_ALT_TEXT''Powered by Zen Cart :: The Art of E-Commerce'); 

    Quote Originally Posted by partinrl View Post
    so I need to pull it out by the root
    Quote Originally Posted by rbarbour View Post
    The actual code is located at /includes/templates/template_default/common/tpl_header.php

    Again if making changes I suggest coping that file to /includes/templates/YOUR_TEMPLATE_NAME/common
    PHP Code:
    <div id="logoWrapper">
        <div id="logo"><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">' zen_image($template->get_template_dir(HEADER_LOGO_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' HEADER_LOGO_IMAGEHEADER_ALT_TEXT) . '</a>'?></div>
    </div>

  5. #5
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Headers

    Quote Originally Posted by partinrl View Post
    Thanks, what about actual <img></img> tag that is inserting it. If I try and remove it via the stylesheet or othermeans it shows up with the alt img txt so I need to pull it out by the root if you know what I mean.
    This seems to be the first thing everyone wants to do.. slash at the code..

    So to your "need to pull it out by the root" comment..

    No you don't..

    set the logoWrapper style to not display in your stylesheet

    OR

    go to the language define that holds the logo file name/dimensions and simply change those defines to '' (empty single quotes) by removing the define

    so
    Code:
    define('HEADER_ALT_TEXT', 'Powered by Zen Cart :: The Art of E-Commerce'); 
    becomes
    Code:
    define('HEADER_ALT_TEXT', '');
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 

Similar Threads

  1. manufacturer headers
    By coolscrapbook in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 10 Apr 2010, 04:24 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