Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Where should I store my images ??

Where should I store my images ??

Locked

Views: 1,410

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
31 Jan 2007, 10:36 AM
#1
jaz1974 avatar

jaz1974

New Zenner

Join Date:
Aug 2006
Posts:
66
Plugin Contributions:
0

Where should I store my images ??

Hi,

Sorry if this sounds like an obvious one, but where should i be storing my images for my site?
This includes both images used to construct the site such as the logo etc, and product images.

Thanx....Jaz

31 Jan 2007, 12:36 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Where should I store my images ??

Your product images are uploaded by default when you entera product to /images

Your site specific imagery is kept with your template in includes/templates/your_template/images

31 Jan 2007, 12:57 PM
#3
jaz1974 avatar

jaz1974

New Zenner

Join Date:
Aug 2006
Posts:
66
Plugin Contributions:
0

Re: Where should I store my images ??

Cool.

Thanks Kobra.

btw - do you have any examples of sites you have worked on, so we can see how it should be done?

31 Jan 2007, 2:51 PM
#4
jaz1974 avatar

jaz1974

New Zenner

Join Date:
Aug 2006
Posts:
66
Plugin Contributions:
0

Re: Where should I store my images ??

Sorry...

So if Im using an image for my background I should? ...

place my image in :

includes/templates/your_template/images/

and then what should i be putting in the background url in the css?

#mainWrapper {
background-image: url(????)

  • background-repeat:no-repeat;
    text-align: left;
    width: 850px;
    vertical-align: top;*
31 Jan 2007, 5:45 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Where should I store my images ??

background-image: url(..the_name_of_your_image.ext)

31 Jan 2007, 6:44 PM
#6
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,602
Plugin Contributions:
0

Re: Where should I store my images ??

The image path for the template needs to be relative to the stylesheet's path.

a background image would be:
background-image: url (../images/YOUR_IMAGE.gif);