Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Use category images but not have them show up in category

Use category images but not have them show up in category

Locked

Started by miabullitt on 13 Jul 2010, 4:50 AM · Views: 949

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
13 Jul 2010, 4:50 AM
#1
miabullitt avatar

miabullitt

New Zenner

Join Date:
Jul 2010
Posts:
2
Plugin Contributions:
0

Post #1 by miabullitt

hey guys im using the latest version of zencart and I have an issue I can't find the answer to. I have various categories with sub categories and I use category images. I don't want the category images displaying in the category once it's open. How can I do this?

13 Jul 2010, 7:55 AM
#2
miabullitt avatar

miabullitt

New Zenner

Join Date:
Jul 2010
Posts:
2
Plugin Contributions:
0

Post #2 by miabullitt

anyone?

13 Jul 2010, 8:56 AM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Post #3 by stevesh

If I understand the question, this in your stylesheet should remove it:

.categoryImg {display:none;}

5 Sep 2010, 1:22 PM
#4
battlefront_games avatar

battlefront_games

New Zenner

Join Date:
Aug 2010
Location:
Illinois
Posts:
33
Plugin Contributions:
0

Post #4 by battlefront_games

I'm looking to do the same thing, where does that line get inserted into the stylesheet?

5 Sep 2010, 3:50 PM
#5
gjh42 avatar

gjh42

Black Belt

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

Post #5 by gjh42

Many people put custom rules at the bottom of the stylesheet, but anywhere that works and makes sense to you is fine. If there is already a rule for the selector in question (.categoryImg in this case), it is good to add to that rule rather than making a separate one.

6 Sep 2010, 1:21 PM
#6
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Post #6 by stevesh

Also, stylesheets apply top to bottom, so if you have a statement for, say, .categoryImg and insert a different one for the same class before the existing one, the existing one will override your changed one.

That's why I add everything at the bottom, after a comment line that says something like 'Everything after this point added by me".