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
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.
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:
Re: Bettercategories sub category font weight
#documentcategories .category-products, #documentcategories .category-products+br {display: none;}
Re: Bettercategories sub category font weight
no luck
looks like its hiding the sub category but creating a 1px line for every sub category
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.
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:
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.