Forums / Addon Sideboxes / Bettercategories sub category font weight

Bettercategories sub category font weight

Views: 2,976

Results 1 to 18 of 18
11 May 2011, 1:32 AM
#1
iczer avatar

iczer

New Zenner

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

Bettercategories sub category font weight

I am using better categories, and it seems as if the main font weight is tied into the sub category font weight when it comes to better categories? I need the top level font weight to be bold, where the subcategory weight i need to be normal in the css. my css is as follows:
/*
BetterCategoriesEzInfo v1.3.0.2 added 2006-06-22 gilby
Updated to v1.3.5 2006-09-19 gilby
*/

.betterCategories, .betterDocuments, .betterEzpages,
.betterInformation, .betterMoreinformation, .betterBestsellers {
border-top: none;

}

.betterCategories a, .betterCategories a:visited,
.betterDocuments a, .betterDocuments a:visited,
.betterEzpages a, .betterEzpages a:visited,
.betterInformation a, .betterInformation a:visited,
.betterMoreinformation a, .betterMoreinformation a:visited,
.betterBestsellers a, .betterBestsellers a:visited {
display: block;
background-color: none;
border-top: none ;
border-bottom:1px solid #000;
padding: 2px;
font-size: 11px;
font-weight: bold;

}

.betterCategories a:hover, .betterCategories a:active,
.betterDocuments a:hover, .betterDocuments a:active,
.betterEzpages a:hover, .betterEzpages a:active,
.betterInformation a:hover, .betterInformation a:active,
.betterMoreinformation a:hover, .betterMoreinformation a:active,
.betterBestsellers a:hover, .betterBestsellers a:active {
background-color: #ffffff;
font-weight: normal;
color:#9700ad;
}

*/

anyone know how to get the subcat weight to be normal?

Thnak you guys very much!

11 May 2011, 1:48 AM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Re: Bettercategories sub category font weight

What is the url to your site please... Post without the http://www.

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 May 2011, 2:05 AM
#3
iczer avatar

iczer

New Zenner

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

Re: Bettercategories sub category font weight

haredo:

What is the url to your site please... Post without the http://www.

It is adult oriented product. pg rated, but regardless, I am letting you know.
Giggles.com

Thank you for your quick reply. much appreciated!

11 May 2011, 2:17 AM
#4
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Re: Bettercategories sub category font weight

Locate this:

includes/templates/avonlee_contempo/css/stylesheet_betterCategoriesEzInfo.css.betterCategories a, .betterCategories a:visited, .betterDocuments a, .betterDocuments a:visited, .betterEzpages a, .betterEzpages a:visited, .betterInformation a, .betterInformation a:visited, .betterMoreinformation a, .betterMoreinformation a:visited, .betterBestsellers a, .betterBestsellers a:visited {
border-bottom: 1px solid #000000;
border-top: medium none;
display: block;
font-size: 11px;
font-weight: bold;
padding: 2px;
}

  1. take the highlighed a away from above..
  2. will look like this:
  3. .betterCategories, .betterCategories a:visited, etc...etc..

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 May 2011, 3:32 AM
#5
iczer avatar

iczer

New Zenner

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

Re: Bettercategories sub category font weight

I just did that and it didnt work... I left it to show you what wound up happening. I appreciate your help btw.

11 May 2011, 3:55 AM
#6
gjh42 avatar

gjh42

Black Belt

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

Re: Bettercategories sub category font weight

You would use the standard category type identifiers for distinctive styling, combined with .betterCategories:
.betterCategories .category-top {} regular top cats
.betterCategories .category-top .category-subs-parent {} top cats open to subs
.betterCategories .category-products {} subcats
.betterCategories .category-products .category-subs-selected {} open subcats

and a couple of others that you might not have.

11 May 2011, 4:11 AM
#7
iczer avatar

iczer

New Zenner

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

Re: Bettercategories sub category font weight

gjh42:

You would use the standard category type identifiers for distinctive styling, combined with .betterCategories:
.betterCategories .category-top {} regular top cats
.betterCategories .category-top .category-subs-parent {} top cats open to subs
.betterCategories .category-products {} subcats
.betterCategories .category-products .category-subs-selected {} open subcats

and a couple of others that you might not have.

ah hah! thats why i couldnt get it. because I wasnt adding .bettercategrories before it, I was going off the standard.category-products,..

one more question. I have .betterCategories .category-products a:hover {font-weight: normal;}
for the subcats, but it is still coming up bold when I hover? Any ideas on that one?

thank you guys very much for your help on this one...

11 May 2011, 5:12 AM
#8
gjh42 avatar

gjh42

Black Belt

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

Re: Bettercategories sub category font weight

Because
.betterCategories .category-products a:hover
means "the link inside .category-products inside .betterCategories" when the actual element is "the link named .category-products inside .betterCategories"

i.e.
.betterCategories a.category-products:hover

11 May 2011, 5:44 AM
#9
iczer avatar

iczer

New Zenner

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

Re: Bettercategories sub category font weight

ah hah. Thanks so much for your quick replies. much appreciated!

19 May 2011, 8:41 PM
#10
dimsumgurl avatar

dimsumgurl

Zen Follower

Join Date:
Dec 2009
Location:
Canada
Posts:
160
Plugin Contributions:
0

Re: Bettercategories sub category font weight

dimsumgurl:

Hello,

I followed your tips and got it to partially work... The colour reflects however the font size doesn't... could you shed some light?

A.category-top {color: #1217FB;text-decoration: none;font-size: 3em;}

> 
> thelittlestgiftboutique.com/teststore/
> 
> 
> Thanks =]

> **gjh42:**
>
> Your stylesheet_betterCategoriesEZInfo.css is loaded after stylesheet.css (so takes precedence where there is a conflict), and has rules that affect the same elements by different names.

I found this thread and tried your tip. Thank you for explaining how it works. =]
21 Jun 2011, 11:53 PM
#11
littlekid440 avatar

littlekid440

New Zenner

Join Date:
Dec 2009
Posts:
55
Plugin Contributions:
0

Re: Bettercategories sub category font weight

im having problems trying to figure out how to NOT show sub categories
right now im using categories and document category
on categories the sub cat does not show up however on document category it does
would any one know how to disable sub category on document category?
please feel free to check out my site and see for your self
http://xlegends.com/beta/index.php

as you can see the women's store is using category
and Men's store is using document category

22 Jun 2011, 1:31 PM
#12
gjh42 avatar

gjh42

Black Belt

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

Re: Bettercategories sub category font weight

#documentcategories .category-products {display: none;}

will hide subcats. If you have multiple levels of subcats there is also another selector you would need to add.

23 Jun 2011, 2:18 PM
#13
littlekid440 avatar

littlekid440

New Zenner

Join Date:
Dec 2009
Posts:
55
Plugin Contributions:
0

Re: Bettercategories sub category font weight

That worked.. kind of..
document category did hide but now there an empty space in between the selected category and the one underneath
im gussing there is no settings in admin command to hide it? like there is for regular categories?
would it be possible to include one or copy the code from category to document category so they both behave the same way?
im not really an expert on php so im heavily reliant towards the open source community :unsure:

25 Jun 2011, 12:31 AM
#15
littlekid440 avatar

littlekid440

New Zenner

Join Date:
Dec 2009
Posts:
55
Plugin Contributions:
0

Re: Bettercategories sub category font weight

no luck
looks like its hiding the sub category but creating a 1px line for every sub category

27 Jun 2011, 4:38 PM
#16
gjh42 avatar

gjh42

Black Belt

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

Re: Bettercategories sub category font weight

BetterCategories doesn't use the stock <br /> between items, but encloses them in divs. This is good, except that all of them, top or subcat, are in

<div class="betterDocuments"> and cannot be distinguished. Thus there is no way to hide the subcat divs.
28 Jun 2011, 1:01 AM
#17
littlekid440 avatar

littlekid440

New Zenner

Join Date:
Dec 2009
Posts:
55
Plugin Contributions:
0

Re: Bettercategories sub category font weight

Thank You for your help
When I removed better category it did seem to work so you are absolutely right
there must be a way to disable the sub cat from loading by editing the php code... or should I not bother because thats not going to work?
I need to teach myself php and this is prob the best place to start :flex:
ill post my progress if there is any for all to enjoy :bigups:

28 Jun 2011, 12:44 PM
#18
gjh42 avatar

gjh42

Black Belt

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

Re: Bettercategories sub category font weight

The categories sidebox has an admin switch function for disabling subcats, and you could copy and perhaps modify the code so the same switch operates on the document categories sidebox.