# Bulk editing Categories

**URL:** https://meta.discourse.org/t/bulk-editing-categories/81076
**Category:** Support
**Created:** [February 20, 2018, 8:01pm UTC](https://meta.discourse.org/t/bulk-editing-categories/81076 "2018-02-20T20:01:55Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Heather\_Dudley](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heather_dudley/32/151925_2.png) [@Heather\_Dudley](https://meta.discourse.org/u/Heather_Dudley)
#### Post date: [February 20, 2018, 8:01pm UTC](https://meta.discourse.org/t/bulk-editing-categories/81076/1 "2018-02-20T20:01:56Z")

</div>

Is there an easy way to bulk edit categories from the admin panel? We’re working on a test site, and of course, I set up differing badge colors for all the categories. I’d like to change them all to roughly the same theme (it won’t be finalized, but this is at the request of beta testers, and I like pretty themes, so.)

Is there an easy way to do this, or do I have to go through and edit each category individually?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [February 20, 2018, 8:27pm UTC](https://meta.discourse.org/t/bulk-editing-categories/81076/2 "2018-02-20T20:27:52Z")

</div>

Not from the UI, but you can do it in the rails console. Here’s an example.

```plaintext
cd /var/discourse
./launcher enter app
rails c
Category.all.update_all(color: "ffe400")
Category.where("name like 'A%'").update_all(color: "00e4ff")
exit
exit

```

---

<div class="post-metadata">

### Author: ![Heather\_Dudley](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heather_dudley/32/151925_2.png) [@Heather\_Dudley](https://meta.discourse.org/u/Heather_Dudley)
#### Post date: [February 20, 2018, 8:31pm UTC](https://meta.discourse.org/t/bulk-editing-categories/81076/3 "2018-02-20T20:31:12Z")

</div>

Thanks; I don’t have access to console, but I’ll pass this to IT; honestly, I’ll end up doing it manually; once it’s set, it won’t be needed.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [June 6, 2020, 7:53pm UTC](https://meta.discourse.org/t/bulk-editing-categories/81076/4 "2020-06-06T19:53:20Z")

</div>


