Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Adjusting colors from stylesheet

Adjusting colors from stylesheet

Locked

Views: 1,614

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
26 Jul 2006, 4:01 PM
#1
maci avatar

maci

New Zenner

Join Date:
Jul 2006
Posts:
18
Plugin Contributions:
0

Adjusting colors from stylesheet

this is the URL of my store https://www.macivision.com
I have changed the color of the background and sideboxes from the original color(Brown/Orange) to Blue but I cannot find on the Stylesheet where to change the Square from the Center Shop which still has the original color. And I wanted to widen the centershop, I have set it to 100% already, but I want it to be wider, so would anybody tell me where to change it. Can anybody help me out?:huh: :huh:

26 Jul 2006, 6:37 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,809
Plugin Contributions:
15

Re: Adjusting colors from stylesheet

You're using the classic versus the newer template_default so there are two stylesheets.

You need to first think about switching templates (you'll probably lose everything on the next big upgrade) and use the override system.

If not, change the #mainWrapper in the stylesheet_new.css to width: 100%;

26 Jul 2006, 6:59 PM
#3
maci avatar

maci

New Zenner

Join Date:
Jul 2006
Posts:
18
Plugin Contributions:
0

Re: Adjusting colors from stylesheet

Thank you for helping. If I were to use the classic stylesheet(includes/templates/classic/css), what do I do with the another one(default_template),do I delete it, so that it won't get mix up?
Thanks

26 Jul 2006, 7:10 PM
#4
maci avatar

maci

New Zenner

Join Date:
Jul 2006
Posts:
18
Plugin Contributions:
0

Re: Adjusting colors from stylesheet

By resetting the mainwraper, it works. And, yes I used overide and did not back up anything. Which files that needed to back up? Iam sorry if the question seems stupid but this is thre first time that Iam using ZEn cart.

26 Jul 2006, 7:20 PM
#5
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,809
Plugin Contributions:
15

Re: Adjusting colors from stylesheet

The classic is only around to ease the transition into the new 1.3.X.X version of ZenCart. 1.2.X.X used the classic template which is table-based. Some are intimidated by the new "floating" stylesheet and stay with the Classic. Those folks will one day find themselves not able to upgrade without major hassles.
The devs have graciously provided files in the template_default folder to allow you to convert to the new tableless format.
If you're in a hurry to upgrade from 1.2.X.X to 1.3.X.X you can stick with the Classic. BUT, you need to create a second site for testing and start migrating to the new template system.
For information on the override system, see the wiki articles starting here:
http://www.zen-cart.com/wiki/index.p...on_-_Templates

27 Jul 2006, 4:59 PM
#6
maci avatar

maci

New Zenner

Join Date:
Jul 2006
Posts:
18
Plugin Contributions:
0

Re: Adjusting colors from stylesheet

Hi, just one more question.
I have create a new template called "maci", so everything that I edit or change, I have to copy it and past into my new template. Example.
if I edit the Stylesheet under the path /public_html/includes/templates/template_default/css/stylesheet.css
I have to copy the change and past it to /public_html/includes/templates/maci/css/stylesheet.css
so that if I were to upgrade, I would not lose any changed I have done.
Is it right?
Leo::unsure:

27 Jul 2006, 5:29 PM
#7
lovere avatar

lovere

Zen Follower

Join Date:
Jul 2004
Location:
Nevada City, CA
Posts:
95
Plugin Contributions:
0

Re: Adjusting colors from stylesheet

maci:

Hi, just one more question.
I have create a new template called "maci", so everything that I edit or change, I have to copy it and past into my new template. Example.
if I edit the Stylesheet under the path /public_html/includes/templates/template_default/css/stylesheet.css
I have to copy the change and past it to /public_html/includes/templates/maci/css/stylesheet.css
so that if I were to upgrade, I would not lose any changed I have done.
Is it right?
Leo::unsure:

Have you activated your template under the admin? If so, there is no further need to change anything in the default template.

27 Jul 2006, 5:34 PM
#8
maci avatar

maci

New Zenner

Join Date:
Jul 2006
Posts:
18
Plugin Contributions:
0

Re: Adjusting colors from stylesheet

Thank you for replying my question.
Yes, I did that already. URL https://www.macivision.com
but the web has very funny colors once I have activated. I just wanna make sure one thing. So now everything that I edit under includes/template/maci would not be lost again.
Leo

27 Jul 2006, 7:57 PM
#9
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,809
Plugin Contributions:
15

Re: Adjusting colors from stylesheet

Sorry Lovere, that's not quite correct. The defaul_template directory does not contain the default template. It contains a guide for creating a custom template without tables.
Maci is using the template_default files to make changes to the look of his site.
This is an excellent move as the table-based Classic template will not be supported in the near future.
The template_default files are to be used as the foundation for creating your own "house." However, any change you make to something under template_default will be overridden in the next release UNLESS you use the override system.
The override system (also called custom template) has been put in place to help those who want the site to look a certain way even after update.
The devs designed most of the core files so that they look to see if any custom template work has been done before using the default.
The wiki, faq, and the forum have lots of help on the override system (custom template).
The override is not in place for the admin files as yet but, anytime you change a file under the mycart/includes/ directory, you should try to save it to an override directory. In maci's case the public_html/includes/templates/maci/css/stylesheet.css will keep his stylesheet intact even with a new release. That's the best and correct approach in maci's case.

27 Jul 2006, 8:04 PM
#10
maci avatar

maci

New Zenner

Join Date:
Jul 2006
Posts:
18
Plugin Contributions:
0

Re: Adjusting colors from stylesheet

hi,
Thank you very much. That explaination really helps a lot.
Leo