I’d like to remove the sub-category from this view. Does anyone have any idea how to do that?
Jacob
I’d like to remove the sub-category from this view. Does anyone have any idea how to do that?
Jacob
You can add this CSS to your theme:
.subcategories {
display: none;
}
From:
To:
I’m not sure .subcategories
is the best selector though. I don’t know if it’s used elsewhere on the forum. Then it may cause unintended effects.
So you can use this instead :D.
.categories-list .category-list.with-topics .subcategories {
display: none;
}
Yeah, that would be safer.
edit: I took a look at Discourse’s code, .subcategories
alone should be safe (I personally like to use not too much selector depth if I can avoid it), and you should also consider hiding .subcategories-list
as well as it’s the subcategories parent container on the mobile view.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.