How to Hide sub categories in hamburger menu


(Vikas Dangi) #1

How do I hide sub categories in the hamburger menu ?

I found the solution here

but I can’t find the show subcategory list in site_settings.


#2

It should be in your Site Settings under Basic Setup

Which version are you on?


(cpradio) #3

It was moved to the Edit Category dialog. Visit the Category topics, click Edit Category, then under the Settings tab it is Show subcategory list above topics in this category.


(Vikas Dangi) #4

my version is v1.8.0.beta7 +10 and it is not showing in my forum


(cpradio) #5

Check the Category Settings


(Vikas Dangi) #6

OK its working. But I also don’t want to show subcategory list above topics in the category.


(cpradio) #7

Unfortunately, both settings did that, so there isn’t any other way to feasibly get what you want at this time.

There is a #pr-welcome to make it easier to hide sub-categories from the hamburger menu though


#8

Enabling “suppress this category from the homepage” doesn’t remove the subcategory from the hamburger menu anymore. I’m on v1.9.0.beta4 +322.


(cpradio) #9

You can do it via CSS which is more consistent


#10

Not really useful for me as it will hide all subcategories.


(cpradio) #11

Then customize the CSS to be (to target the hosting category)

.menu-panel .category-links.category-hosting { display: none }

#12

I’m posting because it should work by using the setting not adding another css hack.


(Sami Syed) #13

Another way is:

.menu-panel.drop-down .category-link.subcategory {
    display:none;
}

(Sami Syed) #14

I noticed this code does not work on mobiles, even though I have it in ‘common’ anyone know why?


(Daniela) #15

Already replied here, take a look: