# 如何对导航菜单部分进行排序？

**URL:** https://meta.discourse.org/t/how-to-sort-nav-menu-sections/289656
**Category:** Support
**Tags:** sidebar
**Created:** [2023年十二月23日 21:56 UTC](https://meta.discourse.org/t/how-to-sort-nav-menu-sections/289656 "2023-12-23T21:56:31Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2023年十二月24日 17:44 UTC](https://meta.discourse.org/t/how-to-sort-nav-menu-sections/289656/2 "2023-12-24T17:44:18Z")

</div>

您好 @Skeleton 👋

您可以使用此处的 CSS 代码来实现此目的：

> [@Sidebar Section Rearrangement](https://meta.discourse.org/t/sidebar-section-rearrangement/288007/3?u=lilly):
>
> There’s not a setting for this, but it can be done by adding CSS to admin/customize/themes .sidebar-wrapper { .sidebar-custom-sections { display: contents; } [data-section-name="community"] { order: -3; } [data-section-name="categories"] { order: -2; } [data-section-name="custom-section-title-here"] { order: -1; } }

---

_[View the full topic](https://meta.discourse.org/t/how-to-sort-nav-menu-sections/289656)._
