Forums / Templates, Stylesheets, Page Layout / Banner failing to load...

Banner failing to load...

Locked

Started by bige64 on 3 Dec 2009, 11:46 PM · Views: 1,212

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
3 Dec 2009, 11:46 PM
#1
bige64 avatar

bige64

New Zenner

Join Date:
Dec 2009
Posts:
10
Plugin Contributions:
0

Banner failing to load...

Zen Cart 1.3.8a
Patch: 1::
Database Patch Level: 1.3.8

I am using a custom template called Darkness found here (http://(sorry, site offline)/templates.html)

The code in the stylesheet is as follows on lines 194-199:

#logoWrapper{
background-repeat: repeat-x;
background-color: #383E44;
background-image: url(../includes/templates/custom/gsgbanner.jpg);
height:144px;
}

The banner header will not show the image that I have. The image is not there whatsoever even if you view the source code off of the web.

Thanks for any help,

4 Dec 2009, 5:40 AM
#2
canopy avatar

canopy

Totally Zenned

Join Date:
Oct 2006
Posts:
625
Plugin Contributions:
0

Re: Banner failing to load...

If you are sure the following code is in your template, then check that you have an image named "gsgbanner.jpg" in the "includes/templates/custom" directory? Also check that you have enabled the new template named "custom" in your Admin?

background-image: url(../includes/templates/custom/gsgbanner.jpg);Another thing I find strange and could be a problem is that your image is not in the "images" directory of your template as follows:

background-image: url(../includes/templates/custom/images/gsgbanner.jpg);If the above suggestions do not work, could you post your site's address so we can have a look at the problem?

Goh Koon Hoek, author of "e-Start Your Web Store with Zen Cart".
Printed book: www.lulu.com/content/10576284
Electronic book and Errata: www.cucumbermedia.com/store

4 Dec 2009, 12:31 PM
#3
bige64 avatar

bige64

New Zenner

Join Date:
Dec 2009
Posts:
10
Plugin Contributions:
0

Re: Banner failing to load...

canopy:

If you are sure the following code is in your template, then check that you have an image named "gsgbanner.jpg" in the "includes/templates/custom" directory? Also check that you have enabled the new template named "custom" in your Admin?

Another thing I find strange and could be a problem is that your image is not in the "images" directory of your template as follows:

If the above suggestions do not work, could you post your site's address so we can have a look at the problem?

I checked to make sure the "gsgbanner.jpg" was there in that directory.

I also placed the image as you suggested into the "Darkness" images directory for the template I am using. This also did not solve my problem...:( This is the code how it is now:

#logoWrapper{
background-repeat: repeat-x;
background-color: #383E44;
background-image: url(../includes/templates/Darkness/images/gsgbanner1.JPG);
height:144px;
}

my web address for my store is: GUN SHOW GOODS .COM/zencart

Just fill in the spaces... Thanks for the help.

4 Dec 2009, 12:33 PM
#4
tino_schlegel avatar

tino_schlegel

Totally Zenned

Join Date:
Nov 2007
Location:
Melbourne, Australia
Posts:
532
Plugin Contributions:
0

Re: Banner failing to load...

The link must be relative to the location of the stylesheet.

Typically, the folder organisation in /includes/templates/custom contains

./css
./images

Not when you want to link from a stylesheet in the ./css folder to a banner in the ./images folder you must use

background-image: url(../images/gsgbanner.jpg);
5 Dec 2009, 3:46 AM
#5
bige64 avatar

bige64

New Zenner

Join Date:
Dec 2009
Posts:
10
Plugin Contributions:
0

Re: Banner failing to load...

tino.schlegel:

The link must be relative to the location of the stylesheet.

Typically, the folder organisation in /includes/templates/custom contains

./css
./images

Not when you want to link from a stylesheet in the ./css folder to a banner in the ./images folder you must use

background-image: url(../images/gsgbanner.jpg);


ahhh thank you so much... thats what it was...