User Aurora asked how to reorder sidebar sections, specifically to place custom sections below categories. Lilly provided an initial CSS solution using order properties within a local component, but Aurora noted it failed on mobile devices. chapoi suggested adding the .sidebar-hamburger-dropdown class to the CSS for mobile compatibility. When this still didn’t work, chapoi identified that the mobile sidebar lacks display: flex and provided additional CSS to enable flexbox on .sidebar-sections. Aurora confirmed the final solution worked perfectly. Additionally, rakekniven asked how to handle spaces in custom section names, discovering that spaces must be replaced with hyphens (e.g., “Help users” becomes help-users) in the data-section-name selector.
I’m running into an issue with the sidebar menu in my Discourse forum. The order of the sections seems fixed — for example, when I create additional custom sections, they always appear above the “Categories” section.
For my community, it would be important to have those custom sections below the categories instead, but I can’t find any way to change or control this order.
Is there a way to manage the position of sidebar sections, or is it currently not possible to customize the hierarchy/order of these blocks?
Hi there, you can control the order of sidebar sections with CSS. Just add a new component with something like the following css code. Go to admin -> themes & compontents -> components and create a new local component