![]() |
How to display subcategories into multiple columns?
How do I edit the subcategories.tpl in order to make it display in 3 or 4 columns and also with the icon or picture next to each subcategories? I am using V3.4.1
Original Sub Cat 1 Sub Cat 2 Sub Cat 3 Sub Cat 4 Sub Cat 5 Sub Cat 6 Need to change to this: Icon/S.Cat 1 Icon/S.Cat 2 Icon/S.Cat 3 Icon/S.Cat 4 Icon/S.Cat 5 Icon/S.Cat 5 Any help will be appreciate. |
In subcategories.tpl
use the code: Code:
{section name=cat_num loop=$subcategories} This will also show the category icon there for you :D |
it also...
makes all your products disappear, and u go to a blank page when you click on those new links...
|
That isn't the whole code for subcategories.tpl just an excerpt to replace the top part where the subcategories are shown.
|
That really makes my site look better. Thanks. :D
|
Thanks, it works like Champ!! Ok sorry to ask for more. How do I change so the product list in 2 columns ? where to edit? I know it is roughly the same as the above code.
Thanks you the man!! |
change this bit
Code:
{ if %cat_num.index% is div by 4} |
i never...
Quote:
i never said i was smart. :oops: |
what....
Quote:
What would I change it to, exactly?..i mean besides the obvious 4?...ugh |
2 for two column
4 for four column 26 for twenty six column..... you get the idea :wink: |
All times are GMT -8. The time now is 01:26 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.