Disable top bar (navigation, login, admin)

How can I disable top black bar allowing users to log in, browse, manage etc.

I don't want this bar on pages for anonymous users.

2 answers

1 accepted

6 votes
David Simpson Community Champion Jan 12, 2012

Browse to Confluence Admin | Look & Feel | Custom HTML

Paste into At the end of the HEAD:

<script>
  AJS.toInit(function(){
    if (AJS.params.remoteUser == ''){
      AJS.$('#header').hide();
    }
  });
</script>

Will this work for confluence on demand?

David Simpson Community Champion May 22, 2013

No, sorry - you can't edit HTML in OnDemand :(

how about footer? doing the same seems to leave a white bar at the bottom

Are there plans to add either an HTML editor or an option to hide it in the OnDemand version?

Is it possible to do this for just one space?

When I browse to Browse > Space Admin. In Look and Feel, I see only these options: Themes Colour Scheme PDF Layout PDF Stylesheet Change Space Logo

Yea I can't hide it as well, I want to be my documentation public and don't need top nav bar.Why it's so hard to hide it?

A similar style hack can be done for Confluence for Cloud. This solution uses the CSS Style macro. The only problem is that it will hide the nav bar for all users, so you have to learn to use the keyboard shortcuts if you have write permissions

Go to Space Tools | Look and Feel | Sidebar, header and footer

Paste in one of those (I tested on header)

{style}
#header {
		display:none !important;
	}
{style}

 

 

 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

621 views 21 11
Join discussion

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