Results 1 to 9 of 9
  1. #1
    Join Date
    Dec 2007
    Posts
    29
    Plugin Contributions
    0

    Default CSS: Color Changes

    After changing just about every color value assotiated with links in /includes/templates/-mytemplate-/css/stylesheet.css and seeing absulotely no change in my store, I am quite confused.

    I was under the impression the Stylesheet controlled all the colors / font sizes and so on and so forth in zencart. So far, it has shown to control nothing, but then again I might be looking at the wrong stylesheet.

    All I want to do is change two things: The "hover" color of the links in the "Catagories" side box and Headers over "New Products". Both of these are set to a very dark color and after I changed the template buttions and backgrounds to the disired colors for our store, they started to blend in.

    As mentioned above, I have not had much luck with finding these settings in the stylesheet. If someone could be patient enough to give me an example of the block(s) in the Stylesheet that are controling these values so that I could find them and change them I would be greatful.


    EDIT: I just noticed a post on this forum about a firefox extention that shows CSS information. Checking that out now....
    Last edited by omega_shadow; 30 Jan 2008 at 06:56 PM. Reason: Found Information on Forum

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: CSS: Color Changes

    The Web Developer extension is worth its weight in gold... well, assume the electrons are heavy ;)

    Most of us who answer questions here find it indispensible.

  3. #3
    Join Date
    Dec 2007
    Posts
    29
    Plugin Contributions
    0

    Default Re: CSS: Color Changes

    I am seeing that. I am going to have to remember to install this little extension when I boot into windows so I got it on both my OS's

    with the amensitiy of the information it gives me, I am still at a loss. It might be my infamiliarity with CSS (Never liked it, used plain HTML on my sites till now) But I still cant find what I am looking for

    I found one of the blocks I was looking for (.centerBoxHeading) but there is no text color in that block. . The FFE says the other one is called .category-top and I can not find that anywhere in the stylesheet.

    Is there something I am missing?

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: CSS: Color Changes

    Many tags that the PHP code provides are not included in the stylesheet by default; they exist so that anyone who needs to style an element differently from stock can do it without first going into the code to create tags.

    Likewise, many things like link and text colors are set for the whole site or large areas of it, and not specifically set for smaller parts as they inherit the general styles.

    So if you want .centerBoxHeading text to be different, just add
    color: #aabbcc;
    or whatever to its declaration in the stylesheet.

    If you don't find a.category-top in the stylesheet, just add it and give it whatever styling you want. (You must be starting from /template_default/ or from a downloaded template, as /classic/ has a comprehensive list of styling for a.category-top and its cousins.)

  5. #5
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,686
    Plugin Contributions
    11

    Default Re: CSS: Color Changes

    You might find the firebug extension to firefox to be a valuable addition to your arnesal. Not only will it show you the css code, it will also show you where the colors or links are inherited from in the first place.

    Inherited code can often be the clue for getting something changed. Load and run firebug, then click on inspect.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  6. #6
    Join Date
    Dec 2007
    Posts
    29
    Plugin Contributions
    0

    Default Re: CSS: Color Changes

    thanx dbltoe. Going to get that now. Good timeing as I am in Windoze and was just about to get the other extension for this version of FF

    Thanx for the info gjh42. That gets me closer to knowing what to do, which usualy ends with me restoring a saved version of the file I was working on up-teen million times as I royaly screw up the code. Yes, this is going to be a very long long day.

    I am thinking a.category-top might be the wrong element. The links inside the Category SideBox are what I am after. What would that element be called?
    Last edited by omega_shadow; 1 Feb 2008 at 08:20 PM.

  7. #7
    Join Date
    Dec 2007
    Posts
    29
    Plugin Contributions
    0

    Default Re: CSS: Color Changes

    that 7 minute limit for editing posts is freaking moronic

    That last line should read: I am thinking a.category-top might be the wrong element. The hover link color inside the Category SideBox is what I am after. What would that element be called?

    Also, this might be the wrong place to ask, but "Zen Cart!" is still displayed in tabs and "Zen Cart!, The Art of E-commerce" is still displayed in the title bar of browsers. How do I chamge this?

  8. #8
    Join Date
    Dec 2007
    Posts
    29
    Plugin Contributions
    0

    Default Re: CSS: Color Changes

    Well, that other extention proved very useful

    Before I edit any files I have a practice of making a copy of the original in the same location with the suffix "_org". I did that in this case with the CSS file. Well, low and behold, zencart was reading both files, the new and the old. It's fixed now and my chamges are now showing up on my site. Might not be a long day after all.

    Thanx for the help

  9. #9
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: CSS: Color Changes

    a.category-top:hover {} will address the links when hovered.

    The title part is covered in the FAQs: My browser bar says "Zen Cart!, The Art of ...", where do I change that?

 

 

Similar Threads

  1. Changes to css for type color
    By LeoJ in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 4 Jun 2013, 04:06 PM
  2. Font color on all text changes color when clicked
    By mariasims in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 6 Jul 2010, 08:15 AM
  3. IE - text changes color
    By babi in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 27 Jun 2008, 07:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg