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 are shown:
Hi Kristin,
there's several CSS selectors you need to do this.
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! :)
Cheers,
Sven
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.