Is it possible to hide user (Name, Avatar etc.) in the public area of the wiki

In the public area of our Wiki, everbody can see the editor of an post. Is it possible to hide this?

1 answer

The easiest way I can think of would be to hide it with javascript. However, anybody with a little bit of HTML DOM and CSS knowledge will be able to find the editor. For example, add this in the Confluence header as javascript:

AJS.$(document).ready(function(){
	//if the login-link id exists (i.e. not logged in), hide the editor
	if(AJS.$("#login-link")){
		AJS.$("div.page-metadata").hide();
	}
});

How can I change the sourcecode of the site? Can thios all be done within the CSS?

You can do this at the Administration Section -> Look and Feel -> Custom HTML -> at the end of BODY and add:

<script type="text/javascript">
AJS.$(document).ready(function(){
    //if the login-link id exists (i.e. not logged in), hide the editor
    if(AJS.$("#login-link")){
        AJS.$("div.page-metadata").hide();
    }
});
</script>

Thanks, our system is localized in german and I'm not able to find "Look and Feel -> Custom HTML". IJust can find the design or the coloreditor. Do you know how the section is called in german?

In that case you can do it at Durchsuchen -> Confluence Admin ->Gestaltung -> Kundenspezifische HTML -> Am Ende des HAUPTTEXTES :)

We / I got no such entry (see atached file)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published 10 hours ago in Jira Ops

Jira Ops Early Access Program Update #1: Announcing our next feature and a new integration

Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...

152 views 0 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you