How to hide the sidebar and All Updates on 7.12

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

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

Summary

After upgrading 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:

1 2 3 4 5 6 7 8 <script> AJS.toInit(function(){ if (AJS.params.remoteUser == ''){ AJS.$('section.aui-sidebar').hide(); AJS.$('main.aui-page-panel-content.content-body').hide(); } }); </script>
Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.