Jump to content

Not to display sub-sub categories(and below) in horizontal menu


Recommended Posts

Hello.

I am trying to customize the horizontal menu in order to display only the two first levels for the categories (I mean, the category name in the menu bar and only  the sub-category name in the submenu, not the sub-sub-categories and below.) Can I just configure it somewhere? Or I think it should be possible to do it in the superfish_modifies.css, somewhere (.sf-menu > li > ul > li > ... ???)  but I can not figure out how to do it. Or should I modify the tlp? Thank you for your help. 

PS: I am working with version 1.6 and default theme, which by the way, are very nice ;) 
Link to comment
Share on other sites

Hi danr87, 

 

Thank you for your reply.

I added the lines in the file 'superfish_modifies.css'. Indeed the sub-sub categories didn't display, but there was an empty place instead. (I use v1.6 default theme: the sub-categories are displayed horizontaly and the sub-sub categories are displayed just below the sub-category)

 

So, i removed the line 107  (display: block !important; ) 

 

To resume:

in file  superfish_modifies.css

 

 
Put into comments the Line 107
.sf-menu li li ul {
  /* display: block !important;   */
…}
 

 

Add following lines:

li.sfHover ul li ul li {
display:none;
}

 

And it works for me.

Edited by Delphy (see edit history)
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...