It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to use CSS customization to hide personal data for the customer?



Hi everyone,

As content admin of Confluence, I would like to know how to use CSS in the Space Stylesheet to hide our contributors'/authors' names for the customer in the Page History, when selecting "compare selected versions"?

Also, we would like to know how to hide "Space tools" as under "Space details", our admins' names Page History compare selected versions.jpgare shown:
Versions compared.png
How to hide Space tools.jpg

1 answer

1 accepted

Hi Kristin,

there's several CSS selectors you need to do this.

  • Space Admins: #spaceAdmins, label[for="spaceAdmins"]
  • Page History: #page-history-container .contributors .confluence-userlink
  • Version Diff: .diff-menu .confluence-userlink

Combined into a single selector you get:

#spaceAdmins, label[for="spaceAdmins"], #page-history-container .contributors .confluence-userlink, .diff-menu .confluence-userlink

If I enter this selector into the global HideElements for Confluence custom CSS selector field, it works like a charm.


With HideElements enabled, this is what I get for the Space Admins list:


And this is what I get for the Page History overview:


And this is what I get for the Version Diff view:


Now, you could also just add the selector together with a "{ display: none !important; }" to your global CSS sheet - but then it's always hidden in all spaces. With HideElements you get a bonus ability: you can go into the HideElements space settings and overwrite the custom CSS selector for a certain space!


What this means is: you can hide this information from "customer spaces", but you are still able to show this information in internal spaces, where you might need it. This might be very useful for you if you have both internal & customer space on the same instance!

Hope this helps! :)


P.S.: If you are doing this for compliancy reasons (e.g. GDPR) you should talk to your lawyers / auditors again about whether just hiding this information is enough in your case. Please be aware that Confluence is still storing and delivering this information to users - this is just cosmetical.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

3,140 views 4 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you