إزالة جميع التصنيفات (أو فقط "غير المصنفة") من قائمة الهامبرغر

Since my uncategorized topics page is still accessible by URL by ordinary users (it’s now a totally blank page), if I could just remove the Uncategorized link from the hamburger menu I wouldn’t have random users clicking there and getting that blank page. So far the CSS solutions I’ve found have not worked. I’d be fine with removing ALL the category links from the hamburger menu, actually. Obviously, I’ve checked this both from a staff and ordinary user account, and have unchecked the “permit uncategorized posts” setting. Thanks!

To remove only the uncategorized category

.hamburger-panel .category-links .category-uncategorized { display: none; }

To remove all

.hamburger-panel .category-links { display: none; }
.hamburger-panel .panel-body-contents > hr { display: none; }
6 إعجابات

Works like a charm. Thanks! Will the FAQ (New) eventually timeout on its own?

No, it will not timeout. It will disappear only when the FAQ has been read (scroll all the way down).

3 إعجابات

Is there a way to start with the above solution to hide all, then specifically display only select categories?

أين يمكنني تعديل هذا الكود؟ أنا مستخدم غير تقني على منصة ديسكورد!

شاهد جميع التفاصيل على Beginner's guide to using Discourse Themes

إعجاب واحد (1)

هذا لم يساعدني :smiley: ذهبت إلى قائمة CSS ولم أستطع العثور على سطر الكود هذا لتعديله. ربما أحتاج إلى إضافته في مكان ما؟

إعجاب واحد (1)

صحيح، هذا السطر من CSS غير موجود حاليًا. يجب عليك إضافته إلى سمةك الحالية أو إلى مكون سمة مدرج في السمة النشطة.

إعجاب واحد (1)