# Categories Tracking Toggle

**URL:** https://meta.discourse.org/t/categories-tracking-toggle/207150
**Category:** Theme component
**Tags:** official, categories-tracking
**Created:** [October 26, 2021, 5:12pm UTC](https://meta.discourse.org/t/categories-tracking-toggle/207150 "2021-10-26T17:12:58Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![Discourse](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/discourse/32/148734_2.png) [@Discourse](https://meta.discourse.org/u/Discourse)
#### Post date: [October 26, 2021, 5:12pm UTC](https://meta.discourse.org/t/categories-tracking-toggle/207150/1 "2021-10-26T17:12:58Z")

</div>

| | | |
| --- | --- | --- |
| :discourse2: | **Summary** | **Categories Tracking Toggle** places a toggle button on each category on the categories page. |
| 🛠 | **Repository Link** | [https://github.com/discourse/discourse-categories-tracking-toggle](https://github.com/discourse/discourse-categories-tracking-toggle) |
| 📖 | **New to Discourse Themes?** | [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) |

Install this theme component

> [@](#):
>
> :discourse2: As this is an #official theme component maintained by the Discourse team, #Support, #Contribute > Bug, #Contribute > UX, and #Contribute > Feature requests can be made in the respective categories here on Meta, and tagged with the appropriate theme component tag. Click on a link below to get one started. 👍
> 
> [❓&nbsp; **Support**](https://meta.discourse.org/new-topic?category_id=6&tags=categories-tracking "Ask for support on configuring and using Categories Tracking Toggle") [🐛&nbsp; **Bug**](https://meta.discourse.org/new-topic?category_id=1&tags=categories-tracking "A bug report means something is broken, preventing normal/typical use of the theme component") [👀&nbsp; **UX**](https://meta.discourse.org/new-topic?category_id=9&tags=categories-tracking "Discussion about the user interface of Categories Tracking Toggle, and how features are presented (including language and UI elements)") [💡&nbsp; **Feature**](https://meta.discourse.org/new-topic?category_id=2&tags=categories-tracking "Discussion about how existing Categories Tracking Toggle features can be improved or enhanced, and how proposed new features could work")

> ℹ Note that it does not work on the “box” style category pages, which do not yet support a section for muted categories.

### Features

**Categories Tracking Toggle** places a toggle button on each category on the categories page, which allows users to quickly toggle between “mute” and “normal” tracking states. It is particularly useful for sites that use the `mute all categories by default` site setting.

 ![category tracking toggle example](https://global.discourse-cdn.com/meta/original/3X/e/0/e03850067f32339f883d29b9b4a439a1589f9fc2.png)

### Settings

The component comes with settings to change the tracking levels used, the icons, subcategory behavior, and text shown on hover.

| Name | Description |
| --- | --- |
| tracking level | 0: Muted, 1: Normal, 3: Watching first post, 4: Tracking, 5: Watching |
| tracking icon | [FontAwesome](https://fontawesome.com/v5.15/icons?d=gallery&m=free) icon name… |
| mute level | 0: Muted, 1: Normal, 3: Watching first post, 4: Tracking, 5: Watching |
| mute icon | |
| include subcategories | When disabled, only the parent category will have its tracking state changed |

| Theme Translation | Default |
| --- | --- |
| custom\_toggle.toggle\_tracking | Currently muted, select to track |
| custom\_toggle.toggle\_mute | Currently tracking, select to mute |

  

> :discourse2: **Hosted by us?** Theme components are available to use on our Standard, Business, and Enterprise plans.

> Last edited by @JammyDodger 2024-06-11T08:49:03Z
> 
> > **Check document**
> >
> > Perform check on document:

---

<div class="post-metadata">

### Author: ![jrgong](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jrgong](https://meta.discourse.org/u/jrgong)
#### Post date: [October 26, 2021, 5:46pm UTC](https://meta.discourse.org/t/categories-tracking-toggle/207150/2 "2021-10-26T17:46:25Z")

</div>

Awesome!

Is it also gonna work on latest stable or on test-passed only?

We had some requests from long time members how to mute certain categories which are for example made for beginners. They weren’t aware of the bell feature.

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [October 26, 2021, 6:23pm UTC](https://meta.discourse.org/t/categories-tracking-toggle/207150/3 "2021-10-26T18:23:32Z")

</div>

> [@jrgong](#):
>
> Is it also gonna work on latest stable or on test-passed only?

I haven’t tested it on stable, but I’m not aware of anything that would prevent it from working there.

---

<div class="post-metadata">

### Author: ![tpetrov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tpetrov/32/164643_2.png) [@tpetrov](https://meta.discourse.org/u/tpetrov)
#### Post date: [October 27, 2021, 2:52pm UTC](https://meta.discourse.org/t/categories-tracking-toggle/207150/4 "2021-10-27T14:52:54Z")

</div>

Thanks for the component, @awesomerobot  
If I select 5 under _mute level_ and change the mute icon to a relevant one will that work to toggle between normal and watched?

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [October 27, 2021, 3:49pm UTC](https://meta.discourse.org/t/categories-tracking-toggle/207150/5 "2021-10-27T15:49:06Z")

</div>

Yes, that should work! let me know if you run into any issues.

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [October 27, 2021, 9:09pm UTC](https://meta.discourse.org/t/categories-tracking-toggle/207150/6 "2021-10-27T21:09:53Z")

</div>

Layout is a bit off and the bell is at wrong place:

 ![kuva](https://global.discourse-cdn.com/meta/original/3X/3/7/37b159d70bb4656a1921506167f2301d7f92b40a.jpeg)

- iPad and DiscourseHub
- Air theme

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [October 27, 2021, 9:14pm UTC](https://meta.discourse.org/t/categories-tracking-toggle/207150/7 "2021-10-27T21:14:28Z")

</div>

Yes, this is somewhat expected. This component basically adds the functionality, but may need additional CSS to fit into the layout properly with other themes and components.

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [October 27, 2021, 9:23pm UTC](https://meta.discourse.org/t/categories-tracking-toggle/207150/8 "2021-10-27T21:23:26Z")

</div>

Good to know. Basically it is not ready-to-use component.

You know better how things are under Discourse - do I have to tune up every theme or is just common adjustment enough?

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [October 29, 2021, 8:24pm UTC](https://meta.discourse.org/t/categories-tracking-toggle/207150/9 "2021-10-29T20:24:22Z")

</div>

It’s highly dependent on the theme, so I can’t really say for sure!

The component works with the default unthemed category page styles by default, so I guess themes that have changed positioning on the categories page could need some adjustment.

---

<div class="post-metadata">

### Author: ![Jonathan5](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonathan5/32/197134_2.png) [@Jonathan5](https://meta.discourse.org/u/Jonathan5)
#### Post date: [October 29, 2021, 9:19pm UTC](https://meta.discourse.org/t/categories-tracking-toggle/207150/10 "2021-10-29T21:19:00Z")

</div>

This sounds good, though I can’t see it in the preview.

Are there plans to allow all five watching/tracking levels to be chosen via the categories page? That would implement the idea proposed by @alehandrof here:

> [@Make watching a category more prominent for users](https://meta.discourse.org/t/make-watching-a-category-more-prominent-for-users/205956):
>
> I’m interested in making watching categories a more prominent option for users. I realize I can style the notification button on a category, but it would remain just a small, somewhat obscure icon. I haven’t been able to figure out how to make a more obvious target. Is it possible to add a notification button for each category on the /categories page? That would also serve as an overview of what the user is tracking. Finally, is it possible to make a user watch the first post of a categ…

> [@Make watching a category more prominent for users](https://meta.discourse.org/t/make-watching-a-category-more-prominent-for-users/205956/8):
>
> Looking at this again… “Preferences - categories” has this overview, but lets you add categories to the five possible notification statuses. Essentially what we are thinking of would be the same thing, but the other way round, letting you add notification statuses to the list of categories. I think that might be more intuitive,

---

<div class="post-metadata">

### Author: ![alehandrof](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alehandrof/32/119526_2.png) [@alehandrof](https://meta.discourse.org/u/alehandrof)
#### Post date: [November 1, 2021, 8:52am UTC](https://meta.discourse.org/t/categories-tracking-toggle/207150/11 "2021-11-01T08:52:45Z")

</div>

@Jonathan5: To see the theme in preview you have to navigate to `yoursite.com/categories?preview_theme_id=xx` (whatever `xx` is for you – I think it changes).

@awesomerobot: On my site, the bell overlaps the “unread” indicator:

 ![Screenshot 2021-11-01 at 10.50.01](https://global.discourse-cdn.com/meta/original/3X/b/d/bd0e6d4ff858cc87dfd997a69d82d12697f28e21.png)

Is there any chance to support other states, apart from just toggling on/off?

Also, when I press on mute right now, the category disappears with no indication of how to get it back from the same page. That doesn’t like ideal UX.

Edit #1: Regarding my last point: the categories only disappear if the user had no muted categories when the page first loaded. If the user did, there’s a “Muted categories” section at the bottom of the page, listing all muted categories. But if the user did not, that section is not available and any newly muted categories just disappear.

Edit #2: It looks like trying to switch between normal/watching (as opposed to the default mute/normal) doesn’t work. The component still mutes categories.

---

<div class="post-metadata">

### Author: ![hoangphuctran93](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hoangphuctran93/32/290976_2.png) [@hoangphuctran93](https://meta.discourse.org/u/hoangphuctran93)
#### Post date: [February 9, 2023, 3:53pm UTC](https://meta.discourse.org/t/categories-tracking-toggle/207150/12 "2023-02-09T15:53:35Z")

</div>

I recently used your theme along with “Modern Category + Group boxes” theme the toggle was gone. Can you check and adjust accordingly?

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [February 9, 2023, 6:58pm UTC](https://meta.discourse.org/t/categories-tracking-toggle/207150/13 "2023-02-09T18:58:23Z")

</div>

“Modern Category + Group boxes” uses a box style categories page layout, which is incompatible with this component

> [@awesomerobot](#):
>
> Note that it does not work on the “box” style category pages, which do not yet support a section for muted categories.

---

<div class="post-metadata">

### Author: ![Sahnvour](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@Sahnvour](https://meta.discourse.org/u/Sahnvour)
#### Post date: [February 4, 2024, 8:58pm UTC](https://meta.discourse.org/t/categories-tracking-toggle/207150/14 "2024-02-04T20:58:09Z")

</div>

Hello, this component looks really cool but it has a few issues unfortunately (3.2.0.beta4-dev).

Sometimes the icon will overlap the following category, if its height is small.  
It will also render on top of the “x unread”, “y new” text notifying of new posts or subjects.

Image upload is not working so I can’t give screenshots, sorry.

---

<div class="post-metadata">

### Author: ![jrgong](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jrgong](https://meta.discourse.org/u/jrgong)
#### Post date: [February 18, 2025, 1:11pm UTC](https://meta.discourse.org/t/categories-tracking-toggle/207150/15 "2025-02-18T13:11:51Z")

</div>

Is that expected behavior that the buttons are not displayed on mobile view?
