Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / header_bg doesn't show

header_bg doesn't show

Locked

Views: 701

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
14 Mar 2008, 6:22 AM
#1
jillc avatar

jillc

New Zenner

Join Date:
May 2006
Posts:
36
Plugin Contributions:
0

header_bg doesn't show

I'm going round and round in circles. I created a couple of templates to test (just simple changes) and then I downloaded a couple of the contributed templates. One of these templates didn't show up the header_bg file - just a plain colour. So I put a question on the help section for contributed templates (no reply so far). Then I started a new template and discovered that I cannot get a background to show up in it either (even if I make no changes at all).
So I figured I must have changed something inside the wrong file. I searched through all the files for changes made in the last month and none of them are located outside of <mytemplate> folder. The original templates I was messing with - Classic contemporary green and my 2 tests show up the background image. The last downloaded template and any new tests I create do not.

What have I done wrong here? Where is the file I messed up? Or how can I recover?

14 Mar 2008, 9:40 AM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: header_bg doesn't show

If you call up your home page, then view the html source, you will see the paths that your shop is trying to reference for your images. Look for the paths to your "logo.gif" (or logo.jpg). This path will indicate what template you are using. Make sure the appropriate header_bg.jpg (or gif) is in the images folder of that template.

In your zenshop admin console, under Tools, use "Template Selection" to do just that... select the template.

20 years a Zencart User

14 Mar 2008, 9:46 AM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: header_bg doesn't show

You probably won't see "header_bg.jpg" in the source code as it's a STYLESHEET call. The div ID is logoWrapper, and that divID also applies to logo.jpg (or logo.gif). So the path to logo.jpg will also be the path to header_bg. Just make sure header_bg is in the same folder.

If you look at stylesheet.css, you'll probably see:-

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

... or similar.

That is the CSS reference for any div ID in your sourcecode for logoWrapper.

20 years a Zencart User