Hiding specific sub-category from Hamburger-Menu

(Lutz Biermann) #1

I want to hide a specific Subcategory from the Hamburger Menu. Not all Subcategories from this Main-Category, only one. With this CSS I can select the link, but not the “li” element.

.hamburger-panel li.category-link a.badge-wrapper.box[[href="/c/mycategory/mysubcategory"] {
	display: none;

I need to get the li.category-link, but no idea how. Any ideas?

(Mittineague) #2

If you want to target a particular <li> try using nth-child

(cpradio) #3

Except that will be a moving target if you have some categories only available to certain groups.

(cpradio) #4

Targetting the li element is now possible with


.hamburger-panel li.category-link.category-mycategory-mysubcategory {
	display: none;

(Lutz Biermann) #5

Wow thats great , thank you!

(cpradio) #6

This is now merged, see prior post for how to hide a specific subcategory.