If this is your first visit, check our documentation. To post, register or login.

How to change colors.

Started by wmorris on 11 Apr 2024, 12:59 PM · Views: 2,070

Results 1 to 5 of 5
11 Apr 2024, 12:59 PM
#1
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Post #1 by wmorris

I just installed the latest newest version of Zen Cart 2.0

Right now I only have the default responsive template. How can change the color from black to another color like in the bar on the top and the sideboxes and the footer? Something for now.

Thanks
Wade

11 Apr 2024, 2:49 PM
#2
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Post #2 by simon1066

If you're planning to customise/create your own template using the Zen Cart Responsive Template as a base then the recommended way would be to clone it using this plugin - https://www.zen-cart.com/downloads.php?do=file&id=2087.

Also, it would now would be a good time to learn how to use your browser's Developer Tools function. With that you can identify the styles (within your stylesheet) that need editing. Start by reviewing this from the Docs - https://docs.zen-cart.com/user/template/basic_customizations/#how-do-i-change-the-colors-and-fonts and the following, as an example:

Attachment 20569

Inspecting the top bar (right click -> inspect) you can see in the above screenshot that that element has an id of 'navMainWrapper' which is styled (in the right column) with a background:#333 (black)

You would, in this case, remove #navMainWrapper from line #46 of /includes/templates/responsive_classic/css/stylesheet_colors.css

and create a new entry of

#navMainWrapper {
background: #FF0000;
}

to change it to red, for example.

The path to stylesheet_colors.css is obviously for responsive_classic and would be different once you have cloned it.

Simon

11 Apr 2024, 3:43 PM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Post #3 by swguy

If you switch to the Bootstrap template:
https://docs.zen-cart.com/user/template/bootstrap/

Color changing is built into your admin. So no file changing required.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

11 Apr 2024, 6:56 PM
#4
dbltoe avatar

dbltoe

Totally Zenned

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

Post #4 by dbltoe

swguy:

If you switch to the Bootstrap template:
https://docs.zen-cart.com/user/template/bootstrap/

Color changing is built into your admin. So no file changing required.
Agreed.

If, however, you just gotta on responsive_classic, I would first use lat9's clone a template to make a copy of responsive_classic to have a fallback for testing etc.

Then, create stylesheet_zcustom.css in the new CSS folder and put all extra styles there.

Makes the next upgrade sooo much easier and you know exactly where to find changes you made.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

11 Apr 2024, 8:15 PM
#5
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Post #5 by swguy

Admittedly, when you gotta, you gotta.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.