Skip to content

keegangeorge/discourse-hide-categories

Repository files navigation

Category Hider

Discourse Theme Component

This is a Discourse theme component that allows you to hide specific categories from various locations in the Discourse UI.

Why would you need this component?

If your Discourse website has a lot of categories and you would like to hide some from appearing in either the menu bar or on the main page, this component can be helpful.

This theme component is more of a stylistic change. It hides desired categories visually, but still keeps notifications and all other functionality for the category intact. To turn off all category features it is recommended to mute a category instead.

General Info

Plugin Name Discourse Category Hider
Author Keegan George
Version 2.1
Installation Guide Installing Theme Components
Discourse Topic Read Topic

Installation

Below is a quick start guide to setup your discourse theme. A more comprehensive guide can be found here.

View Guide
  1. On your discourse website, navigate to:

    Admin > Customize > Themes > Components
  2. Click Install and select From a git repository

  3. Paste in the following link:

    https://github.com/keegangeorge/discourse-hide-categories
  4. Navigate to your current theme and select it

  5. Include the them component on your current theme.

Preview

🔭 Preview on theme creator

Before -> After


Settings

In the settings, you can add what categories you would like to hide for different instances/areas where categories appear.

You can hide categories in:

  • Category Boxes with Subcategories
  • Hamburger Menu
  • Category Boxes with Featured Topics
  • Category List (this type always appears on mobile)
  • Category Breadcrumb

For each setting use either the dropdown to select from the categories or enter the category slug.