Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / header.php and tpl header image remover

header.php and tpl header image remover

Locked

Views: 3,228

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
14 Jul 2008, 7:41 PM
#1
d1rage5 avatar

d1rage5

Zen Follower

Join Date:
Jan 2008
Location:
Roswell, Ga USA
Posts:
144
Plugin Contributions:
0

header.php and tpl header image remover

i know this has to be easy but i am missing something somewhere.

i was removeing the logo.gif and the place holder for that image still shows up. ive gone to tpl_header and tried to comment out the line but the page just shoows the comment out lines i place in. ive tried //, # and /* */.

exp.

tpl_header

 //<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>

also tried it with this line <div id="logoWrapper">

i have the tpl files in my templete/common location so to not worry about the next upgrade (the same with all my mods)

you can see what i am talking (or typing) about here.

http://www.halloweenspace.com/index.php

14 Jul 2008, 8:23 PM
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: header.php and tpl header image remover

d1rage5:

i know this has to be easy but i am missing something somewhere.

i was removeing the logo.gif and the place holder for that image still shows up. ive gone to tpl_header and tried to comment out the line but the page just shoows the comment out lines i place in. ive tried //, # and /* */.

exp.

tpl_header

 //<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>

also tried it with this line <div id="logoWrapper">

i have the tpl files in my templete/common location so to not worry about the next upgrade (the same with all my mods)

you can see what i am talking (or typing) about here.

http://www.halloweenspace.com/index.php

check this article in the tutorials/FAQ section

www.zen-cart.com/tutorials/index.php?article=126

14 Jul 2008, 8:40 PM
#3
d1rage5 avatar

d1rage5

Zen Follower

Join Date:
Jan 2008
Location:
Roswell, Ga USA
Posts:
144
Plugin Contributions:
0

Re: header.php and tpl header image remover

clydejones:

check this article in the tutorials/FAQ section

www.zen-cart.com/tutorials/index.php?article=126

Thats sort of it. if i do that correct comment info it will get rid of everything including the header_bg that is the files on the right that would take up the entire top section.

when i remove logo.gif from the following line in header.php the place holder shows up.

// added defines for header alt and text
define('HEADER_ALT_TEXT', '');
define('HEADER_SALES_TEXT', '');
define('HEADER_LOGO_WIDTH', '192px');
define('HEADER_LOGO_HEIGHT', '64px');
define('HEADER_LOGO_IMAGE', '');

So what has to be commented out to just remove the one place holder?

14 Jul 2008, 8:48 PM
#4
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town &amp; London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: header.php and tpl header image remover

You don't comment out DEFINES - just remove the text descriptions between the set of single quotes:-

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

becomes:-

define('HEADER_LOGO_IMAGE', '');

14 Jul 2008, 8:56 PM
#5
d1rage5 avatar

d1rage5

Zen Follower

Join Date:
Jan 2008
Location:
Roswell, Ga USA
Posts:
144
Plugin Contributions:
0

Re: header.php and tpl header image remover

Figured it out.

Had to remove some text

(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images').

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

removed this line and it worked.

if you commentout the logo line it seems that it will revert back to the common templete and i assume it sees this as not complete or you get info from somewhere else.

the above was a little easer.

i just made a copy of the file and names it with old and the date just in case i need to figure out what i did laster on or i could have just commented out what i did. bot ways work for me.