Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / what did i do wrong with this

what did i do wrong with this

Locked

Views: 1,646

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
25 Jun 2008, 8:14 PM
#1
morga avatar

morga

New Zenner

Join Date:
Nov 2007
Posts:
18
Plugin Contributions:
0

what did i do wrong with this

hello :)

So upon trying to remove the zen logo and sales message from the logo, i searched the forums and tutorials and thought i found the answer so i modified my tpl header to this

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

and i get <----> the left corner of my logo, no zen cart logo.

I still have the sales message goes here in gray. So I attempted to add the following:
define('HEADER_SALES_TEXT', ");'<h1>Sales Message Goes Here</h1>');
which i found on the forums. then when i upload it all to a test server in my office my site goes blank. So the site isn't live yet.

I don't know what i have done wrong :(

Morga

25 Jun 2008, 8:25 PM
#2
charmedbytina2 avatar

charmedbytina2

Totally Zenned

Join Date:
Mar 2007
Location:
AZ
Posts:
1,890
Plugin Contributions:
0

Re: what did i do wrong with this

and i get <----> the left corner of my logo

remove the <-- and the --> and you should be ok.

define('HEADER_SALES_TEXT', ");'<h1>Sales Message Goes Here</h1>');

That looks wrong. See the end ) without the beginning ( ?

Take a look at the original file to see how that line was set up and compare it to what you have.

Tina

25 Jun 2008, 8:52 PM
#3
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,809
Plugin Contributions:
15

Re: what did i do wrong with this

It is seldom that you would need to mess with a tpl_ file.

You can change the logo in the includes/languages/english.php file and the sales text in the includes/languages/english/header.php files. If you do not want to use any logo.gif, you can turn it off in the css.

Be sure to save the changes as includes/languages/CUSTOM/english.php and includes/languages/english/CUSTOM/header.php respectively in order to not lose the changes in an upgrade.

25 Jun 2008, 9:05 PM
#4
morga avatar

morga

New Zenner

Join Date:
Nov 2007
Posts:
18
Plugin Contributions:
0

Re: what did i do wrong with this

ok I see the problem the original code is :
define('HEADER_SALES_TEXT', '<h1>Sales Message Goes Here</h1>');

so upon a nice lil walk to think i came back and switched to
define('HEADER_SALES_TEXT', '');

I left in the single ' after the comma :(

as for my red arrows... well i use <-- instead of <!--

thank you
Morga

PS> Dbltoe I knew I took the long route! dang it ! :)

26 Jun 2008, 2:02 AM
#5
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,809
Plugin Contributions:
15

Re: what did i do wrong with this

Glad you got it going. You're seeing why I have the sig.

26 Jun 2008, 2:18 AM
#6
morga avatar

morga

New Zenner

Join Date:
Nov 2007
Posts:
18
Plugin Contributions:
0

Re: what did i do wrong with this

now i have run into a problem where my logo has been cut off. according to my main_bg it is 10.556x1.528 inches and 72dpi.

current code looks like this.
// added defines for header alt and text
define('HEADER_ALT_TEXT', 'Powered by Zen Cart :: The Art of E-Commerce [home link]');
define('HEADER_SALES_TEXT', '');
define('HEADER_LOGO_WIDTH', '200px');
define('HEADER_LOGO_HEIGHT', '64px');
define('HEADER_LOGO_IMAGE', 'logo.gif');

I don't remember changing anything so any help would be appreciated in fixing this

Morga:frusty:

26 Jun 2008, 2:41 AM
#7
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,809
Plugin Contributions:
15

Re: what did i do wrong with this

Really need to see the site to answer that one.

26 Jun 2008, 2:43 AM
#8
morga avatar

morga

New Zenner

Join Date:
Nov 2007
Posts:
18
Plugin Contributions:
0

Re: what did i do wrong with this

i just uploaded it to make sure i had a problem :)

here ya go

http://www.myshoehabit/storefront

Morga

26 Jun 2008, 2:59 AM
#9
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,809
Plugin Contributions:
15

Re: what did i do wrong with this

Your image is 761x110 and the css is set to 75 for the height.

Around line 200 of your stylesheet, change the height: 75px; to height: 90px;

Adjust the 90 up or down to suit your needs.

Additionally, you don't really need the background-repeat: repeat-x; and can change it to /background-repeat: repeart-x;/ in case you may need it later.

26 Jun 2008, 3:01 AM
#10
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,809
Plugin Contributions:
15

Re: what did i do wrong with this

As to the links and other css tweaks, make sure you have the new firefox3 with the new firebug addon. Couldn't do a thing without that addon:yes::yes:

26 Jun 2008, 3:25 AM
#11
morga avatar

morga

New Zenner

Join Date:
Nov 2007
Posts:
18
Plugin Contributions:
0

Re: what did i do wrong with this

ok I merely looked at the properties of the original logo and went from there, now i know to look via firebug..

As luck would have it I just d/l'd the ff3 today.

thank you !

Morga:bigups: