# 如何重新排序（或隐藏）“Votes”和“My Votes”顶部菜单列表项？

**URL:** <https://meta.discourse.org/t/how-to-re-order-or-hide-votes-and-my-votes-top-menu-list-items/207244>\
**Category:** Product Support\
**Tags:** topic-voting\
**Created:** [2021 年10 月 26 日 15:45 UTC](https://meta.discourse.org/t/how-to-re-order-or-hide-votes-and-my-votes-top-menu-list-items/207244 "2021-10-26T15:45:25Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

作者： ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)\
发布日期： [2021 年10 月 28 日 16:44 UTC](https://meta.discourse.org/t/how-to-re-order-or-hide-votes-and-my-votes-top-menu-list-items/207244/9 "2021-10-28T16:44:51Z")

</div>

当存在未出现在“`top menu`”设置中的非标准按钮时，只需通过 CSS 调整顺序，因为 `navbar` 元素使用了 `flex` 属性。参考以下示例：

```css
/* 在此特定情况下，投票插件仅在某个分类中启用，
因此我们将仅修改该分类中的导航栏。将 {your-category-slug} 
替换为目标分类的 slug */

.category-{your-category-slug} #navigation-bar {
  /* 最新 */
  :nth-child(1) { 
    order: 1;
  }
  /* 未读 */
  :nth-child(2) {
    order: 2;
  }
  /* 新帖 */
  :nth-child(3) {
    order: 3;
  }
  /* 得票最高 */
  :nth-child(4) {
    order: 5;
  }
  /* 我的投票 */
  :nth-child(5) {
    order: 6;
  }
  /* 活跃 */
  :nth-child(6) {
    order: 4;
  }
  /* 书签 */
  :nth-child(7) {
    order: 7;
  }
}

```

---

_[View the full topic](https://meta.discourse.org/t/how-to-re-order-or-hide-votes-and-my-votes-top-menu-list-items/207244)._
