Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / change background color

change background color

Locked

Views: 2,819

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
23 Oct 2007, 7:57 PM
#1
hockul avatar

hockul

New Zenner

Join Date:
Mar 2007
Posts:
4
Plugin Contributions:
0

change background color

I am having trouble changing the background color on each side of the web page. I am using the classic green template. I have changed the stylesheet in the template/classic/css/ directory but it does not change the color.

Is there an overide that changes it back if so where is it at.

I have also changed it in the template/default/css still no change.

in the help section question. how to change to white or gray can you to other colors

New to zencart need help

23 Oct 2007, 8:05 PM
#2
nomadrw avatar

nomadrw

Zen Follower

Join Date:
Sep 2007
Location:
Somewhere in Southern Cal
Posts:
331
Plugin Contributions:
0

Re: change background color

that because you need to place the file in your custom folder that you made when you first installed zen.
Might look like this
includes/templates/custom/css/stylesheet.css
Do not remove or delete the one in
template/default/css
nomad

23 Oct 2007, 8:18 PM
#3
hockul avatar

hockul

New Zenner

Join Date:
Mar 2007
Posts:
4
Plugin Contributions:
0

Re: change background color

the only folders in the template folders are the classic and the default folders.

How do i create the custom folder.

24 Oct 2007, 12:09 AM
#4
nomadrw avatar

nomadrw

Zen Follower

Join Date:
Sep 2007
Location:
Somewhere in Southern Cal
Posts:
331
Plugin Contributions:
0

Re: change background color

you should have already have that folder made when you installed zen.
if not then you need to get an ftp program, or you can do it from your host site.
It's just like making a folder on your computer. just follow the path I gave you above.
nomad

25 Oct 2007, 2:21 PM
#5
hockul avatar

hockul

New Zenner

Join Date:
Mar 2007
Posts:
4
Plugin Contributions:
0

Re: change background color

I have created the folder/templates/custom/css/ and put the style sheet with the changes in it no difference. How do I tell zencart to look at this folder.

26 Oct 2007, 6:17 PM
#6
nomadrw avatar

nomadrw

Zen Follower

Join Date:
Sep 2007
Location:
Somewhere in Southern Cal
Posts:
331
Plugin Contributions:
0

Re: change background color

can you please post what changes you made on the stylesheet.css

nomad

26 Oct 2007, 6:50 PM
#7
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: change background color

You can't simply change one file and expect Zen Cart to know where to find it.

To create a very basic custom template (you can build from there), you need:

  • includes/languages/YOUR_TEMPLATE/english.php
  • includes/languages/english/YOUR_TEMPLATE/index.php
  • includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo)
  • includes/templates/YOUR_TEMPLATE/template_info.php
  • includes/templates/YOUR_TEMPLATE/common/tpl_header.php
  • includes/templates/YOUR_TEMPLATE/common/tpl_footer.php
  • includes/templates/YOUR_TEMPLATE/images/logo.gif
  • includes/templates/YOUR_TEMPLATE/css/stylesheet.css

Anywhere you see a /classic/ folder, you can create a folder for your custom template. You can copy the necessary files from either the /classic/ folder, the /template_default/ folder or the parent folder.

Edit includes/templates/YOUR_TEMPLATE/template_info.php to give your template identifying information so you'll recognize it in the admin under tools->template selection.

26 Oct 2007, 11:58 PM
#8
nomadrw avatar

nomadrw

Zen Follower

Join Date:
Sep 2007
Location:
Somewhere in Southern Cal
Posts:
331
Plugin Contributions:
0

Re: change background color

I was assuming that when someone installs Zen that they already built their custom folder and placed all the necessary files in it.
I quess I can not assume that any more.

My fault on that one.

nomad

29 Oct 2007, 1:42 PM
#9
hockul avatar

hockul

New Zenner

Join Date:
Mar 2007
Posts:
4
Plugin Contributions:
0

Re: change background color

Thanks to all for the help. I did not create a custom folder because this web is used between a certain current customer and us. No need to get fancy the classic template is just fine. However i wanted to change the colors to the school colors. I got all changes i wanted except the background color. I found my mistake. When I change a file like stylesheet.css o save the old one as stylesheet1.css. This overwrote the stylesheet.css as they loaded change to sstypesheet.bak and it worked. Thanks for the help.

linus

29 Oct 2007, 1:46 PM
#10
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: change background color

hockul:

Thanks to all for the help. I did not create a custom folder because this web is used between a certain current customer and us. No need to get fancy the classic template is just fine. However i wanted to change the colors to the school colors. I got all changes i wanted except the background color. I found my mistake. When I change a file like stylesheet.css o save the old one as stylesheet1.css. This overwrote the stylesheet.css as they loaded change to sstypesheet.bak and it worked. Thanks for the help.

linus

If you insist on using the classic folders instead of taking a moment or two to create a custom template, you will LOSE ALL YOUR CHANGES with the next update/upgrade.