How to hide the sidebar and All Updates on 7.12

Still need help?

The Atlassian Community is here for you.

Ask the community


Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.

 

Please note that all the workaround stated on this page are beyond Atlassian Support Offerings.

Summary

After upgrade to 7.12, the existing Stylesheet code to hide the sidebar and All Updates do not work.

Environment

Confluence 7.12

Cause

In 7.12, some of the HTML code has been changed by AUI9. The details of the changes are here.

Solution

Add the following code to General Configuration > Custom HTML in the At the end of the HEAD: 

<script>
AJS.toInit(function(){
  if (AJS.params.remoteUser == ''){
  AJS.$('section.aui-sidebar').hide();
  AJS.$('main.aui-page-panel-content.content-body').hide();
  }
});
</script>

Last modified on Jun 9, 2021

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.