Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / sub categories listing?

sub categories listing?

Locked

Views: 663

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
10 Dec 2010, 5:01 PM
#1
grasmat avatar

grasmat

New Zenner

Join Date:
Dec 2010
Posts:
71
Plugin Contributions:
0

sub categories listing?

I would like to have my subcategories next to each other in stead of under eacht other like i have at this moment: https://www.walhallarecords.be
but i want to have it like this: https://www.rushhour.nl

Probably i need to edit the PHP code, but my php knowledge is 0..

maybe someone could help me out with this?

11 Dec 2010, 11:05 AM
#2
grasmat avatar

grasmat

New Zenner

Join Date:
Dec 2010
Posts:
71
Plugin Contributions:
0

Re: sub categories listing?

bump! really need some help on this!

11 Dec 2010, 11:24 AM
#3
first_trading avatar

first_trading

Zen Follower

Join Date:
Aug 2008
Posts:
244
Plugin Contributions:
0

Re: sub categories listing?

Just a thought but if you tried something like:

.sideBoxContent a.category-products {
width:20px;
float:left;
}

Put into your relevant stylesheet, might just work. You may have to play around with the width. Basicaly you need to give the category products a small overall width and then just float them left so they line up from left to right. Or another thought.

display:inline;

12 Dec 2010, 12:39 AM
#4
grasmat avatar

grasmat

New Zenner

Join Date:
Dec 2010
Posts:
71
Plugin Contributions:
0

Re: sub categories listing?

hmmm this doen't do anything..
by the way, i'm currently using the "Replacement Category Tree" mod to show all subcategories.. maybe i should edit something in this script?

14 Dec 2010, 6:50 PM
#5
gjh42 avatar

gjh42

Black Belt

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

Re: sub categories listing?

The categories in your sidebox are all separated by <br /> to keep them on separate lines. Try this:

.category-products+br {display: none;}

This may be all you need, but if you have any problem with the following top cat being on the same line as the subs, you can add this:

.category-products+br+.category-products+br+.category-products+br {display: block;}

This will not work in IE6, but IE7 and all modern browsers will handle it correctly.