Zen Cart Logo

Headers

Views: 1,079

Results 1 to 5 of 5
22 Apr 2013, 12:08 AM
#1
partinrl avatar

partinrl

New Zenner

Join Date:
Mar 2013
Posts:
18
Plugin Contributions:
0

Headers

Attachment 12380

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!

22 Apr 2013, 12:18 AM
#2
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Headers

partinrl:

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

22 Apr 2013, 2:16 PM
#3
partinrl avatar

partinrl

New Zenner

Join Date:
Mar 2013
Posts:
18
Plugin Contributions:
0

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.

22 Apr 2013, 2:35 PM
#4
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Headers

partinrl:

it shows up with the alt img txt

rbarbour:

The define statements are located at /includes/languages/english/header.php

define('HEADER_ALT_TEXT', 'Powered by Zen Cart :: The Art of E-Commerce');

partinrl:

so I need to pull it out by the root

rbarbour:

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

<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>
</div>
22 Apr 2013, 6:24 PM
#5
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Headers

partinrl:

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.. :no:

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

define('HEADER_ALT_TEXT', 'Powered by Zen Cart :: The Art of E-Commerce'); 

becomes

define('HEADER_ALT_TEXT', '');