That view shows 20 topics by default. So, unless that specific category gets a lot of topics bumped - whether it be new topics or replies - I think it’s fine just to hide those topics.
You have two options.
- With JavaScript in your theme’s header tab
<script type="text/discourse-plugin" version="0.8">
const { on } = require("discourse-common/utils/decorators");
const ignoreCategoryId = 6;
api.modifyClass("component:categories-topic-list", {
@on("didReceiveAttrs")
removeCategoryTopics() {
const filtered = this.topics.filter(
({ category_id }) => category_id !== ignoreCategoryId
);
this.topics = filtered;
},
});
</script>
This prevents the markup for the topics from being rendered altogether. Change ignoreCategoryId to the id for the category you want to target. You can find that by visiting that category and checking the URL in your browser.
https://meta.discourse.org/c/support/6 <---- last digit is the category id
- With CSS… if it’s a top-level category
.latest-topic-list-item.category-SLUG {
display: none;
}
if it’s a child category
.latest-topic-list-item.category-PARENT_SLUG-CATEGORY_SLUG {
display: none;
}
Anything beyond that will require a plugin or a change in core as far as I know.