Forums / Templates, Stylesheets, Page Layout / Customizing classic template - changing color theme

Customizing classic template - changing color theme

Locked

Started by old_cow on 8 Sep 2009, 3:23 PM · Views: 3,778

Results 1 to 18 of 18
This thread is locked. New replies are disabled.
8 Sep 2009, 3:23 PM
#1
old_cow avatar

old_cow

New Zenner

Join Date:
Sep 2009
Location:
Atlanta, Georgia
Posts:
36
Plugin Contributions:
0

Customizing classic template - changing color theme

I followed Kevin's instructions (westhost.com/blog/2009/05/14/customizing-zen-cart-part-1/#more-283) to modify the classic template by changing the color theme.

I have chosen as a new color: grey instead the blue Kevin did use.

The problem I accoutered was that the left bar heading “Sponsors” turned out blue instead of grey. I did run it twice – same effect!


He referred to four tags, but this selection includes the one he used already, maybe there is one missing?

#navMainWrapper, #navSuppWrapper, #navCatTabsWrapper {
#navEZPagesTop {
.leftBoxHeading, .centerBoxHeading, .rightBoxHeading {
.productListing-rowheading {

Could somebody please explain how to change the entire template to a new color or find the missing tag?


(Zen Cart Version 1.3.8)

8 Sep 2009, 3:54 PM
#2
afo avatar

afo

Totally Zenned

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

Re: Customizing classic template - changing color theme

First of all, you shouldn't be making changes to the files in the classic folders. You should be creating your own custom template by copying the files you want to edit into your own folders. It's unfortunate that this isn't even mentioned in the tutorial you followed. Following the override/template system protects your changes from being overwritten by upgrades/updates which always include the classic folders.

Secondly, if you're working online, it's easier for us to see what's happening and advise you on how to proceed if you give us a link to your site.

Lastly, if you don't have the Firefox browser, get it and get the web developer add on for it which will allow you to tinker with the stylesheet and see the results immediately. You'll still have to save your changes locally and FTP them to your site.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

8 Sep 2009, 4:49 PM
#3
old_cow avatar

old_cow

New Zenner

Join Date:
Sep 2009
Location:
Atlanta, Georgia
Posts:
36
Plugin Contributions:
0

Re: Customizing classic template - changing color theme

Thanks afo - I will follow your guidelines and learn more about the override/template system.
My future cart will be located here: http://www.ip-192.com/cart/ and shows the style sheet in question. The website itself is a WordPress blog (http://www.ip-192.com/) and I would like to add online shopping for my customers.
I just read about the new Zen Cart version 2.0. This sounds great. Hopefully it comes soon, that I don’t have to start with the old one. I use HostGator and it would be easy for me to do a new installation before I get really online.

8 Sep 2009, 4:59 PM
#4
afo avatar

afo

Totally Zenned

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

Re: Customizing classic template - changing color theme

Don't wait for 2.0. It'll be a while before it's ready to be used on live sites. The beta hasn't even been released.

To answer your question, look for this in your stylesheet:

#bannerboxHeading {
	background-color: #0000CC;
}

and change it to

#bannerboxHeading {
	background-color: #525252;
}

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

8 Sep 2009, 5:04 PM
#5
old_cow avatar

old_cow

New Zenner

Join Date:
Sep 2009
Location:
Atlanta, Georgia
Posts:
36
Plugin Contributions:
0

Re: Customizing classic template - changing color theme

Thanks, it was the missing tag.

8 Sep 2009, 5:40 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Customizing classic template - changing color theme

Or, if you don't want the bannerBoxHeading to be treated differently from all the other sidebox headings, you can just delete that whole rule and it will follow the same general rules as all the other sideboxes. That makes it simpler to adjust the sidebox colors again if you want to.

8 Sep 2009, 5:44 PM
#7
old_cow avatar

old_cow

New Zenner

Join Date:
Sep 2009
Location:
Atlanta, Georgia
Posts:
36
Plugin Contributions:
0

Re: Customizing classic template - changing color theme

You're right, it would even streamline the stylesheet.

8 Sep 2009, 6:27 PM
#8
afo avatar

afo

Totally Zenned

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

Re: Customizing classic template - changing color theme

You might also want to consider getting one of the free templates and using it as your starting point. You can see them "in action" at http://(sorry, site offline)/

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

8 Sep 2009, 7:07 PM
#9
old_cow avatar

old_cow

New Zenner

Join Date:
Sep 2009
Location:
Atlanta, Georgia
Posts:
36
Plugin Contributions:
0

Re: Customizing classic template - changing color theme

Nice selection, "Mostly Grey" complements my blog website closely. It is important customers "feel like home". Now I need to change some fonts and colors to stay within the CI. Thanks so much for helping me get started quickly!

8 Sep 2009, 8:09 PM
#10
afo avatar

afo

Totally Zenned

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

Re: Customizing classic template - changing color theme

When I saw what you were trying to do, I thought several of the free templates might work for you and save you some time. It'll also help you learn about creating custom templates without having to start from the beginning.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

8 Sep 2009, 8:15 PM
#11
old_cow avatar

old_cow

New Zenner

Join Date:
Sep 2009
Location:
Atlanta, Georgia
Posts:
36
Plugin Contributions:
0

Re: Customizing classic template - changing color theme

Great advice! I’m already putting content to the cart-site walking step by step through the Zen-admin.

10 Sep 2009, 2:24 AM
#12
goldringlee avatar

goldringlee

New Zenner

Join Date:
Sep 2009
Posts:
1
Plugin Contributions:
0

Re: Customizing classic template - changing color theme

Thanks for your sharing.

10 Sep 2009, 7:20 PM
#13
old_cow avatar

old_cow

New Zenner

Join Date:
Sep 2009
Location:
Atlanta, Georgia
Posts:
36
Plugin Contributions:
0

Re: Customizing classic template - changing color theme

I must do something terribley wrong, because the font size do not match the "classic" template, but I did not make any changes in this regard. I came back to this template, because the "mostlygrey" (I still like it) may not work with the products. Please help what I may have done incorrect?
(http://www.ip-192.com/cart/)

10 Sep 2009, 7:24 PM
#14
afo avatar

afo

Totally Zenned

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

Re: Customizing classic template - changing color theme

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

10 Sep 2009, 9:07 PM
#15
old_cow avatar

old_cow

New Zenner

Join Date:
Sep 2009
Location:
Atlanta, Georgia
Posts:
36
Plugin Contributions:
0

Re: Customizing classic template - changing color theme

I did all modified files "save as" with Notepad++ (sylesheet.css, header.php, index.php and meta_tags.php. I even created sylesheet.css new from the fresh installation of ZenCard. But the font sizes are out of order. Firebug tells me no errors. Where should I look into?

11 Sep 2009, 7:48 PM
#16
old_cow avatar

old_cow

New Zenner

Join Date:
Sep 2009
Location:
Atlanta, Georgia
Posts:
36
Plugin Contributions:
0

Re: Customizing classic template - changing color theme

How can I apply the same space between Footer (Home) and the last side box like the space between all other side boxes? http://www.ip-192.com/cart/

12 Sep 2009, 2:21 AM
#17
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Customizing classic template - changing color theme

Move the margin from the top to the bottom of the sideboxes, and add padding to the top of the columns.

#navColumnOneWrapper, #navColumnTwoWrapper {padding-top: 15px;}

.leftBoxContainer, .rightBoxContainer {margin-top: 0; margin-bottom: 15px;}

12 Sep 2009, 6:54 PM
#18
old_cow avatar

old_cow

New Zenner

Join Date:
Sep 2009
Location:
Atlanta, Georgia
Posts:
36
Plugin Contributions:
0

Re: Customizing classic template - changing color theme

Thanks, great - Looks much better!