Forums / Templates, Stylesheets, Page Layout / having trouble trying to add a logo

having trouble trying to add a logo

Locked

Views: 6,647

Results 1 to 20 of 65
This thread is locked. New replies are disabled.
26 Apr 2008, 11:53 AM
#1
snarfy avatar

snarfy

Zen Follower

Join Date:
Apr 2008
Posts:
178
Plugin Contributions:
0

having trouble trying to add a logo

I give up can any body help me, I’ve been trying to change the look of my store I added a few item that I’ll be selling just so I’d get the feel of how it all works which was really easy,

I also managed to change the width of the page,

The bit I’m having trouble with – I’ve been trying to add a logo at the top of my page but to no avail, I followed all the steps and I’ve created all the necessary changes and added all the custom folders that I need but the problem is I’ve messed about with them so much that I now think I’ve done more harm than good, is there somebody willing to have a little look at the files and file structure to see what I’ve done so far,

Also I’ve written scrapbookingmad test in one of the files just to see if I was getting it in the right place at the top of the page but now I cant seam to find were I done this, and it’s still showing on the home page, but this is not what I want, I want my logo here

The logo I want to use at the top of each page has been uploaded but I just can seam to see it, but some how I’ve added it to the admin panel at the top, very strange I don’t know what I’ve done there, I don’t mind it there but I’d like to centre it if possible,

https://www.scrapbookingmad.com

26 Apr 2008, 12:19 PM
#2
snarfy avatar

snarfy

Zen Follower

Join Date:
Apr 2008
Posts:
178
Plugin Contributions:
0

Re: having trouble trying to add a logo

SORRY WRONG LINK THIS IS THE ONE

http://www.scrapbookingmad.com/store/

26 Apr 2008, 1:41 PM
#3
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: having trouble trying to add a logo

Looks like you're using the Classic Template, so go to Includes/Languages/Classic/header.php. That's where you define your logo image AND your tagline (scrapbookingmad test):

// 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', '<h1>Sales Message Goes Here</h1>');
define('HEADER_LOGO_WIDTH', '200px');
define('HEADER_LOGO_HEIGHT', '70px');
define('HEADER_LOGO_IMAGE', 'logo.gif');

Hope this helps.

Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!

26 Apr 2008, 6:15 PM
#4
snarfy avatar

snarfy

Zen Follower

Join Date:
Apr 2008
Posts:
178
Plugin Contributions:
0

Re: having trouble trying to add a logo

I opened, Includes/Languages/Classic/

But the only thing that’s in there is a text document,

Includes/Languages/Classic/empty.txt

What shall I do next?

26 Apr 2008, 6:51 PM
#5
snarfy avatar

snarfy

Zen Follower

Join Date:
Apr 2008
Posts:
178
Plugin Contributions:
0

Re: having trouble trying to add a logo

I’ve just looked at the original Zen cart that I downloaded and it’s the same, the header.php isn’t there but there is the empty.txt document, so I’m guessing that I haven’t done any thing wrong?

Can I just upload the header.php file from Includes/Languages/english/ from the original? Zen cart on my computer to Includes/Languages/Classic

Or will this be messing things up,

26 Apr 2008, 6:58 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: having trouble trying to add a logo

snarfy:

Can I just upload the header.php file from Includes/Languages/english/ from the original? Zen cart on my computer to Includes/Languages/Classic

Or will this be messing things up,
You can, but you don't need to unless you're changing its contents.
If you're going to alter it, then yes, make a copy of the original version of the file, and place it in your own custom template override folder ... as described in the FAQs:
https://www.zen-cart.com/tutorials/index.php?article=36
https://www.zen-cart.com/tutorials/index.php?article=142
https://www.zen-cart.com/tutorials/index.php?article=230

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

26 Apr 2008, 7:20 PM
#7
snarfy avatar

snarfy

Zen Follower

Join Date:
Apr 2008
Posts:
178
Plugin Contributions:
0

Re: having trouble trying to add a logo

I’m now a little confused I’ve been reading about this for two days and still cant find the answer,

You said
“You can, but you don't need to unless you're changing its contents”

well this is my point the file that I need to change isn’t there all thats there is an empty text file empty.txt
is this right

26 Apr 2008, 8:14 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: having trouble trying to add a logo

Since you've decided to use the "classic" folder as your template, then yes, you'll have to copy the indicated file into the 'classic' folder, and make your changes there.

My point was ... the file would only be in the 'classic' folder if you were using 'classic' as your template and if you'd made changes to the file. Otherwise the original master file is used (ie: the one in the /includes/languages/english folder) ... as outlined in the FAQs.

So ... yes ... make a copy of the /includes/languages/english/header.php file and save it to /includes/languages/english/classic/header.php ... and make your changes there.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

26 Apr 2008, 8:28 PM
#9
snarfy avatar

snarfy

Zen Follower

Join Date:
Apr 2008
Posts:
178
Plugin Contributions:
0

Re: having trouble trying to add a logo

Ok i've done that but still cant seam to get the logo to show at the top of the page, like i said before some how i have managed to get the logo at the top of my admin?, but not the website,
this is what i have changed it to

// added defines for header alt and text
define('HEADER_ALT_TEXT', '');
define('HEADER_SALES_TEXT', '');
define('HEADER_LOGO_WIDTH', '980px');
define('HEADER_LOGO_HEIGHT', '160px');
define('HEADER_LOGO_IMAGE', 'logo.gif');

what have i done wrong?

26 Apr 2008, 8:33 PM
#10
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Re: having trouble trying to add a logo

Sn,
includes/ templates/ classic/ images/

  1. logo.gif
  2. have you changed this yet

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

26 Apr 2008, 8:42 PM
#11
snarfy avatar

snarfy

Zen Follower

Join Date:
Apr 2008
Posts:
178
Plugin Contributions:
0

Re: having trouble trying to add a logo

yep i've added my logo but still nothing

26 Apr 2008, 8:45 PM
#12
snarfy avatar

snarfy

Zen Follower

Join Date:
Apr 2008
Posts:
178
Plugin Contributions:
0

Re: having trouble trying to add a logo

Also I don’t know if this has any thing to do with it but at the top of my pages there is a red cross,

http://www.scrapbookingmad.com/store/

26 Apr 2008, 9:18 PM
#13
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Re: having trouble trying to add a logo

S,
#logoWrapper{
background-image: url(../images/header_bg.jpg);
background-repeat: repeat-x;
background-color: #ffffff;
height:75px;
}

Did you place the header logo here to.. the path is different than the classic logo placement

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

26 Apr 2008, 9:22 PM
#14
snarfy avatar

snarfy

Zen Follower

Join Date:
Apr 2008
Posts:
178
Plugin Contributions:
0

Re: having trouble trying to add a logo

ok that looks new where do i need to place that, sorry but my brain is like mush,

26 Apr 2008, 9:28 PM
#15
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Re: having trouble trying to add a logo

Because you have stated in your .css sheet
#logoWrapper{
background-image: url(../images/header_bg.jpg);

You need to place the logo image in this file

  1. ftp header_bg.jpg to:
  2. root directory / images

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

26 Apr 2008, 9:38 PM
#16
snarfy avatar

snarfy

Zen Follower

Join Date:
Apr 2008
Posts:
178
Plugin Contributions:
0

Re: having trouble trying to add a logo

Not sure I understand can you make it a little clearer sorry,

This is the path
Store/includes/templates/classic/css/stylesheet.css
This is what I see on my stylesheet.css

#logoWrapper{
background-image: url(../images/header_bg.jpg);
background-repeat: repeat-x;
background-color: #ffffff;
height:75px;
}

26 Apr 2008, 9:52 PM
#17
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Re: having trouble trying to add a logo

Sn,
Yes, that is the path,
If you are stating in a declaration LogoWrapper to place your logo on the page.

The image has to be placed in the same path as you are describing..

Ftp the image to root directory/ images..

I am going to pm you...

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

26 Apr 2008, 10:01 PM
#18
snarfy avatar

snarfy

Zen Follower

Join Date:
Apr 2008
Posts:
178
Plugin Contributions:
0

Re: having trouble trying to add a logo

i've taken a screen shot if this helps

26 Apr 2008, 10:09 PM
#19
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Re: having trouble trying to add a logo

snarfy:

Not sure I understand can you make it a little clearer sorry,

This is the path
Store/includes/templates/classic/css/stylesheet.css
This is what I see on my stylesheet.css

#logoWrapper{
background-image: url(../images/header_bg.jpg);
background-repeat: repeat-x;
background-color: #ffffff;
height:75px;
}

Back to square one.
Since you have declared the logo image in the path above you half to place the header-bg.jpg there

  1. ftp the .jpg to: store/images
  2. or change the path above to:
  3. url(../store/includes/templates/classic/ images

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

26 Apr 2008, 10:22 PM
#20
snarfy avatar

snarfy

Zen Follower

Join Date:
Apr 2008
Posts:
178
Plugin Contributions:
0

Re: having trouble trying to add a logo

Ok I’ve changed it to this, and all that’s happened is the red x has moved to the centre of the screen

#logoWrapper{
background-image: url(http://www.scrapbookingmad.com/store/includes/templates/classic/images/logo.gif%29;
background-repeat: repeat-x;
background-color: #ffffff;
height:75px;
}