# Sidebar Menu Reorder

**URL:** https://meta.discourse.org/t/sidebar-menu-reorder/394049
**Category:** Theme component
**Tags:** sidebar
**Created:** [January 22, 2026, 2:28am UTC](https://meta.discourse.org/t/sidebar-menu-reorder/394049 "2026-01-22T02:28:08Z")
**Posts on this page:** 1
**Showing post:** 13

<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: [April 8, 2026, 1:58am UTC](https://meta.discourse.org/t/sidebar-menu-reorder/394049/13 "2026-04-08T01:58:29Z")

</div>

@nathank - ok i played around with this on my test instance and i was able to rename the section `the-forum` and then back to `community`.

when in the rails console, if you do:

```ruby
SidebarSection.where(public: true).pluck(:id, :title, :section_type)

```

what does it output?

i am guessing it should give something like:

```ruby
=> [..., [1, "the-forum", "community"]]

```

or

```ruby
=> [..., [1, "The Forum", "community"]]

```

which would verify it is `section_type` = `community` with a different title. then we can do:

```ruby
# find the default community section via rails enum
section = SidebarSection.find_by(section_type: :community)

# fallback: if not found by type, then look for the specific custom title
section ||= SidebarSection.find_by(title: 'the-forum', public: true)

if section
  section.update!(title: 'Community')
  puts "Success: The section has been renamed back to 'Community'."
else
  puts "Error: Section not found."
end

```

screenshot of my rails console showing the community section titled `the-forum` and renaming it back to `Community`, then verifying it was changed:

 ![Screenshot 2026-04-07 at 10.42.57 PM](https://global.discourse-cdn.com/meta/original/4X/d/2/e/d2ec7e2488f850b358e414ef57489bb1a45c7594.png)

---

_[View the full topic](https://meta.discourse.org/t/sidebar-menu-reorder/394049)._
