How to make non-active Confluence logo button?

Ella Zīle October 7, 2014

Hello!

I need to make Conlfuence logo button (picture is enclosed) non-active for Confluence user, I need to make it active only for administrator, can I do this?FeatTour_CQ_WhyQuestions-04_812x383.png

2 answers

1 accepted

0 votes
Answer accepted
Davin Studer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 8, 2014

You could put some javascript in the Custom HTML section of Confluence Admin to unlink it on page load.

<script type="text/javascript">
AJS.toInit(function(){
	if(AJS.Meta.get('is-confluence-admin') != "true") {
		AJS.$('#logo a').attr('href', '#');
	}
});
</script>
Ella Zīle October 8, 2014

Thank You, Davin!

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 7, 2014

You'll have to hack the theme or core code to do that.  (Not sure why you'd want to either, all it does is take the user to the standard home page, which can be useful)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events