Users discuss how to customize the “community” section in the Discourse sidebar. MorganCarey asks about editing or disabling items in the dropdown, noting a lack of a simple UI for this. Heliosurge and nathank explain that while no easy button exists, admins can hide elements via CSS or use theme components to add custom links. Canapin adds that CSS can also reorder items. Kushalghosh9899 asks about adding custom pages, and nathank points to a theme component solution. MorganCarey shares their site is live and thanks the community, then asks about new features. nathank recommends the release-notes category, and nathank updates that a new feature allows adding custom sections without scripts, though it doesn’t support my links.
Until that is more widely available you are left with hiding some or all of the Community section with CSS (is pretty straightforward for admins) or doing some slightly crazier hacky stuff as chronicalled here:
To summarize, you’ll use your browser development tools to find which HTML element to hide and put a display: none; CSS rule on it.
If you want to reorder some elements, it can also be done with CSS. It’s a little bit more advanced, and it will depend on what you want to reorder and the exact order you want.
What if we want to add some elements or pages into the sidebar menu or if we want to add more items like some custom pages into it then how we can achieve that?
The best way at the moment is to add this code to your Theme (or make your own Theme Component) based upon this (or the post below it):
I had a go at packaging this into its own configurable Theme Component based on the Hamburger Links TC but I got stuck on getting the variables from a list into the code. I’m sure someone more clever than I could do it in a few minutes!
Is there a “what’s new” thread somewhere talking about all the new features? I’m embarrassed to say we were quite a few versions behind, I want to make sure I’m not missing any cool new things that aren’t on my radar.