# Hide edit pencil for non-staff users

**URL:** https://meta.discourse.org/t/hide-edit-pencil-for-non-staff-users/281184
**Category:** Development
**Created:** [October 5, 2023, 6:15pm UTC](https://meta.discourse.org/t/hide-edit-pencil-for-non-staff-users/281184 "2023-10-05T18:15:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Jonathan5](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonathan5/32/197134_2.png) [@Jonathan5](https://meta.discourse.org/u/Jonathan5)
#### Post date: [October 5, 2023, 6:15pm UTC](https://meta.discourse.org/t/hide-edit-pencil-for-non-staff-users/281184/1 "2023-10-05T18:15:06Z")

</div>

Continuing the discussion from [Hide edits icon for members?](https://meta.discourse.org/t/hide-edits-icon-for-members/122236/4):

I’ve unset `edit history visible to public` but the orange pencil icon still appears on the post. I’d like to hide the pencil **only** for people who cannot see the edit history. In other words, I’d like the people who are allowed to see the edit history (but nobody else) to see the pencil.

This CSS solution hides the pencil for everybody but of course that means **nobody** can see the edit history…

> [@Hide edits icon for members?](https://meta.discourse.org/t/hide-edits-icon-for-members/122236/4):
>
> You can use some css customization to hide it
> 
> ```plaintext
> .topic-body .post-info.edits {
> display: none;
> }
> 
> ```

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [October 5, 2023, 6:30pm UTC](https://meta.discourse.org/t/hide-edit-pencil-for-non-staff-users/281184/2 "2023-10-05T18:30:02Z")

</div>

If you add a second bit to reset it for staff it should do the trick:

```plaintext
.topic-body .post-info.edits {
    display: none;
}

.staff .topic-body .post-info.edits {
    display: initial;
}

```

Though (FWIW) I actually still find it useful to know a post has been edited even if I can’t see the history.

---

<div class="post-metadata">

### Author: ![Jonathan5](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonathan5/32/197134_2.png) [@Jonathan5](https://meta.discourse.org/u/Jonathan5)
#### Post date: [October 5, 2023, 7:14pm UTC](https://meta.discourse.org/t/hide-edit-pencil-for-non-staff-users/281184/3 "2023-10-05T19:14:18Z")

</div>

That works perfectly, thank you.

> [@JammyDodger](#):
>
> Though (FWIW) I actually still find it useful to know a post has been edited even if I can’t see the history.

I agree with you, but I’m trying some things to declutter the forum.

---

<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: [November 4, 2023, 7:14pm UTC](https://meta.discourse.org/t/hide-edit-pencil-for-non-staff-users/281184/4 "2023-11-04T19:14:20Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
