Removing edit history pencil icon

Hi,

I want only admins to be able to see the pencil icon and revision count for topics created on my site. I understand that you need to use CSS to do this.

Please can you help with the CSS and where in the navigation I will find the field that I need to paste this into?

Many thanks for your help.

Bruce

You can right click > Inspect to find it, but here it is:

.post-infos .edits {
  display: none !important; // You may not need '!important' here
}
1 Like

Hi Bruce, you can set it so that users cannot see the post edits with the edit_history_visible_to_public setting but I think they can still see the pencil but not press it.

If you’d like to hide it there are some helpful guides in Documentation such as this one. css guidance is a bit out of scope in the support category.

1 Like

That’s great, ondrej. Thanks very much for your help.

1 Like