Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Some tips to modify stylesheet

Some tips to modify stylesheet

Locked

Views: 44,030

Results 1 to 20 of 44
This thread is locked. New replies are disabled.
11 May 2007, 6:01 PM
#1
battra avatar

battra

New Zenner

Join Date:
May 2007
Posts:
24
Plugin Contributions:
0

Some tips to modify stylesheet

Here is how to find out which CSS class/ID to modify for a specific part of the page:

  1. Download Web Developer extension for FireFox here
  2. Install & restart FireFox. You should see an additional bar right above the tabs.
  3. Select Information > Display Element Information
  4. Move your mouse/hover around the page and you should see the CSS tags for each page element is displayed just below the Web Developer bar. This allows you to see which class or ID control an element and what is the hierarchy. Once you get the ID, you can look for it in the CSS file and make the changes.
  5. If you click on an element, its information is displayed in the yellow box on the left.

Apologize if this seems trivial, hopefully can be useful for some of you.

11 May 2007, 6:10 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: Some tips to modify stylesheet

Good explanation. We can get tired of going over that for the bazillionth time, so it's nice to have it clearly written out in one place.

13 May 2007, 11:44 AM
#3
johneemac avatar

johneemac

New Zenner

Join Date:
Sep 2006
Posts:
65
Plugin Contributions:
0

Re: Some tips to modify stylesheet

Definately my favourite FireFox extension and its fantastic for editing Zen Cart.

Thanks for posting details up for newbies

20 May 2007, 9:59 PM
#5
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Some tips to modify stylesheet

For a quick overview of all classes and id's:

Use the formentioned FF developer tool (made by Chris Pederick) and click on "Information|Display Id & Class Details"

2 Jun 2007, 2:11 PM
#6
traypup avatar

traypup

New Zenner

Join Date:
May 2007
Posts:
56
Plugin Contributions:
0

Re: Some tips to modify stylesheet

Thank you, battra, for posting that. You are my favorite person for the day!

2 Jun 2007, 4:49 PM
#7
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Some tips to modify stylesheet

Get the Firebug add-on as well - combined with the Web Developer gives you amazing powers! :laugh:

Another handy one is X-ray, although the page can get a bit cluttered with info when you use that.

5 Jun 2007, 8:19 PM
#8
traypup avatar

traypup

New Zenner

Join Date:
May 2007
Posts:
56
Plugin Contributions:
0

Re: Some tips to modify stylesheet

thanks, Ryk. I will check them out!

1 Jul 2007, 1:06 PM
#9
denimdragon avatar

denimdragon

New Zenner

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

Re: Some tips to modify stylesheet

This is sweet. Thanks so much

6 Jul 2007, 7:50 PM
#10
solartrees avatar

solartrees

New Zenner

Join Date:
Jun 2007
Posts:
53
Plugin Contributions:
0

Re: Some tips to modify stylesheet

:thumbsup:

Yes. We need guys like you to come together more often. That is just to the point!

I can now put the 15 library books away for the time:blink: and use that Firefox plug in and the IE plugin. I am totally new, newer than newbie! But I wish to learn and understand this stuff hopefully with some guidance.

Again, Kodo's to you guys, I appreciate this post.:clap::clap::clap:

23 Jul 2007, 4:50 AM
#11
happymom avatar

happymom

New Zenner

Join Date:
May 2006
Posts:
82
Plugin Contributions:
0

Re: Some tips to modify stylesheet

This is GREAT!!!! :clap:

Thanks!

24 Jul 2007, 3:44 PM
#12
slenderdog avatar

slenderdog

New Zenner

Join Date:
Jul 2007
Posts:
12
Plugin Contributions:
0

Re: Some tips to modify stylesheet

Brilliant! Thanks very much!

3 Aug 2007, 1:48 AM
#13
rpp_hobby avatar

rpp_hobby

New Zenner

Join Date:
Aug 2007
Posts:
1
Plugin Contributions:
0

Re: Some tips to modify stylesheet

I am a big time newb and feel real stupid asking, but I can get into my adminstration panel, and ad products, catagory's etc. but for the life of me I can not find the style sheet. I would like to change text and colors of mine and am lost. I also got my zencart downlaoded from godaddy.com where my hosting is. Please help me learn. Thanks Corey

3 Aug 2007, 6:18 AM
#14
happymom avatar

happymom

New Zenner

Join Date:
May 2006
Posts:
82
Plugin Contributions:
0

Re: Some tips to modify stylesheet

is located at:

/www/your_zen_cart/includes/templates/your_template_name/css/stylesheet.css

your_template_name is probably something like "classic" if you haven't created our own template.

Oh... and you can't really modify it thru the admin account, you have to modify using an FTP client. Downlaod it , change it, then upload it again.

Hope this helps.

Thanks!

3 Aug 2007, 3:16 PM
#15
daver1510 avatar

daver1510

New Zenner

Join Date:
Jul 2007
Posts:
70
Plugin Contributions:
0

Re: Some tips to modify stylesheet

I know this is a newbie question but do you install ff on your pc or on the server and if it's on the servers - how and where do you stick it.

3 Aug 2007, 4:54 PM
#16
happymom avatar

happymom

New Zenner

Join Date:
May 2006
Posts:
82
Plugin Contributions:
0

Re: Some tips to modify stylesheet

daver1510:

I know this is a newbie question but do you install ff on your pc or on the server and if it's on the servers - how and where do you stick it.

When you say "ff", do you mean the "FTP"?

The FTP is a program that you use to upload and download files from your server. Is the same program that you use to install and upload your zen store.

The FTP progam is install on your PC.

Using your FTP Program, you loggin in to your server, then you go to the directory
/www/your_zen_cart/includes/templates/your_template_name/css/

and download the file:
stylesheet.css

Make the change to the stylesheet.css and then upload it back to the server, to the same directory from where you download it. Is always a good idea to create a back up, just incase things get really mess up.

Does this make sense?

Thanks!

22 Aug 2007, 8:32 AM
#17
dogmatic69 avatar

dogmatic69

New Zenner

Join Date:
May 2006
Posts:
40
Plugin Contributions:
0

Re: Some tips to modify stylesheet

Hi,

Another great ff extention is the FireBug one. You can test things "live" although it does not actualy edit your files. once you have your changes sorted just cut and paste to your files and your done.

27 Aug 2007, 1:01 AM
#18
arnold931 avatar

arnold931

New Zenner

Join Date:
Jun 2007
Location:
frozen land of Nador
Posts:
23
Plugin Contributions:
0

Re: Some tips to modify stylesheet

I think Web Developer is great. The only problem I am having is - when I use Information|Display Element Information, some of the text runs out the right side of the "Web Developer" text box when I mouse of certain parts of the page. Has anyone else had this problem?

18 Dec 2007, 3:48 AM
#19
astarkley avatar

astarkley

New Zenner

Join Date:
Nov 2006
Posts:
72
Plugin Contributions:
0

Re: Some tips to modify stylesheet

I'm pretty new can you tell me where I can find the text color in the style sheet so I can change my header text from gray to white? alisgaragesale.com/CTaquatic this is the text I want to change the color of. "Welcome to CT Aquatic! Your connection for all your salt water aquarium needs."

7 Jan 2008, 4:08 AM
#20
mt_ed avatar

mt_ed

New Zenner

Join Date:
Dec 2007
Posts:
31
Plugin Contributions:
0

Re: Some tips to modify stylesheet

Hi Battra, last May2007 you submitted the idea of downloading a webdeveloper extension for Firefox. I was able to down load it, but when I attempted to "install" it in Firefox, I got the error message that it was not a valid Win32 application??? To the best of your knowledge, has something changed from when you made your recommendation? Thanks for your help, sounds like something that would be very helpful!

MT ed