How to show Page tree and hide other options in Sidebar by default for all Spaces

Still need help?

The Atlassian Community is here for you.

Ask the community


By default, the space sidebar shows Child Pages and a few other options like PagesBlogCalendarsSpace Shortcut, and Space Shortcuts.

If a user or space admin want to show the Page Tree, and hide the other options, they will have to go to each space and change it manually.


  • We can instead use CSS to hide the links that we do not want by default
  • Use the Page Tree macro to add a Page Tree to the sidebar instead.


  • To hide the other default options from the sidebar
  • Add the CSS below in the Global Stylesheet (Confluence_BaseURL)/admin/viewstylesheet.action

    .main-links-section {display: none;
    .quick-links-wrapper {display: none;
    .ia-secondary-container.tipsy-enabled {display: none;
  • To show the Page Tree, we use the macro in the Sidebar, header, and footer section

  • The result would be something like below, for all Spaces.

We can further configure the Page Tree macro to hide the search box and the other options like sort, depth, and show or hide the expand, collapse all option.

Last modified on May 31, 2018

Was this helpful?

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