Lutz
(Lutz Biermann)
12. März 2017 um 15:39
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?
If you want to target a particular <li>
try using nth-child
cpradio
(cpradio)
12. März 2017 um 21:25
3
Except that will be a moving target if you have some categories only available to certain groups.
1 „Gefällt mir“
cpradio
(cpradio)
13. März 2017 um 12:36
4
Targetting the li
element is now possible with
https://github.com/discourse/discourse/pull/4749
Using
.hamburger-panel li.category-link.category-mycategory-mysubcategory {
display: none;
}
11 „Gefällt mir“
Lutz
(Lutz Biermann)
13. März 2017 um 19:41
5
Wow thats great , thank you!
cpradio
(cpradio)
14. März 2017 um 21:43
6
This is now merged, see prior post for how to hide a specific subcategory.
3 „Gefällt mir“
system
(system)
Geschlossen,
12. Juni 2019 um 22:55
8
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.