如何将类别描述添加到类别下拉列表中显示?

Hi,

My categories have their description post,

but the first line is not populating the category dropdown:

image

I would like the description to appear as it does on other Discourse servers:
image

any advice is appreciated.

bw

Stephen

PS: can the description topics be pinned to the top by default ? - I’ve noticed that once I’ve visited a category - if I fail to pin it myself it disappears never to be found again. I’d really like it to be pinned so my users can see it.

1 个赞

Please ignore the PS. I’m still learning and now I can’t remove it

1 个赞

The description in the dropdown is shown only for new users at TL0 that need to learn how the site is structured.

The description will be automatically hidden when a user reaches TL1.

6 个赞

As Daniela mentioned, we only show the category description in the dropdown for new users (trust level 0) and it’s hidden for everyone else. The thought is that regular visitors will benefit from seeing more categories at once and the descriptions are less useful.

You can override this behavior by adding this to the head section of your site’s theme (admin > customize > themes > edit html/css):

<script type="text/discourse-plugin" version="0.8">
api.modifyClass("component:category-drop", {
    displayCategoryDescription: true,
});
</script>
8 个赞

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.