Jump to content

Product subcategory depth


Recommended Posts

Hello everyone.

 

Is the depth of the subcategory limited?

 

I'm Using 1.6 and in the config of the category block i checked the max depth is set to 0.

I'm displaying my categorys in the left column.

 

But all my subcategorys with depth 4 or more are displayed below depth 3. In the database the categorys are saved with the correct depth number.

 

 

post-866755-0-70239800-1417532490_thumb.jpg

Link to comment
Share on other sites

It is limited by the css code that is defined for it. They only added it for three levels. To add yourself, edit file:

 

/themes/default-bootstrap/css/modules/blockcategories/blockcategories.css    (Backup!)

 

Then add to the end, something like:

 

#categories_block_left li li li a:before {
      content: "\f105\f105";          // sign(s) used for 'bullet'
      font-family: "FontAwesome";
      line-height: 29px;
      color: lightgreen;              // color of 'bullet'
      padding-right: 12px;            // Indent for text of that level
}
#categories_block_left li li li li a:before {
      content: "\f105\f105\f105";
      font-family: "FontAwesome";
      line-height: 29px;
      color: orange;
      padding-right: 16px;
}
 
As you can see, I added an extra 'li' level in the code, to define a separate bullet/color for the next level (and I added 'li li' for the level below that level)
 
Result:
post-455771-0-24665700-1417591722_thumb.png
 
You can make more levels, by just adding a new 'li' after the red ones I added
 
I chose the same '>' as sign (code \f105) as the current last level, and just repeated it two/three times, but you can choose other 'bullets' from for example here:
 
 
Hope this helps,
pascal
 
 
 
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...