This documentation has moved. For the most recent documentation, check out Please update your bookmarks and links.

Skip to end of metadata
Go to start of metadata

For ThemeBuilder version 5.5.0+ / Confluence 5.9.7+ the flaglogic method has been changed. Please see the 'main' panel for the logic that controls which sidebar panel to show.

A more in depth look at controlling the display of certain page elements

The areas in this example are:



Pages - Is the start of the breadcrumb trail if removed the breadcrumbs would also be removed.
The code is in the 'title' panel:

<ac:macro ac:name="panel-element">
    <ac:parameter ac:name="element">page.breadcrumbs</ac:parameter>


So remove this and both 'Pages' and the breadcrumbs will be gone.

If you want to keep the breadcrumbs then this CSS could be used instead to hide the first list item in the breadcrumbs trail:


.atb-body #breadcrumbs li.first {
    display: none;


This does leave a slash in front of the breadcrumbs and we are working on the CSS to hide that as well.

Edit and Tools Menu

Tools menu - also in the 'title' panel (its a surprisingly busy area) and the code is:

<ac:macro ac:name="panel-element">
    <ac:parameter ac:name="element">page.content-navigation</ac:parameter>

You can remove the code completely or control who sees it using flag logic.
Flag Logic can be used in two ways

  • Directly in the macro using the flag or notflag parameters set in the 'flaglogic' panel
  • Together with the builder-hide and builder-show macros

For this example I'm going to use the builder-show macro to ensure that only 'confluence -administrators' see the tools and edit menu.

  1. In the 'title' panel insert a new line just after the first line <div id="main-header">
  2. Use the 'Insert Macro' button to browse and choose the 'builder-show' macro, and then scroll down to the field for 'Group Membership'

  3. Add the name of the group you want to only show the wrapped content to. In this case 'confluence-administrators'
  4. Click Insert and the macro will be added to the panel
  5. Then copy and cut the code for the Edit and Tools menu


    <ac:macro ac:name="panel-element">
        <ac:parameter ac:name="element">page.content-navigation</ac:parameter>

    And paste it inside the 'builder-show' macro, between the  <ac:rich-text-body> tags

  6. When you 'Apply' the changes to the panel only 'confluence-administrators' will be able to see the Edit and Tools menu.

Labels and Like areas

The code for the Labels and Likes is at the bottom of the 'content' panel. One macro inserts both the Labels and Likes code. Delete this code to remove the Labels and Likes:


<ac:macro ac:name="panel-element">
  <ac:parameter ac:name="element">page.labels-editor</ac:parameter>

The Space Tools link is part of a block of default Confluence content added in to the 'with-sidebar' panel by this code:

<ac:macro ac:name="panel-element">
   <ac:parameter ac:name="element">page.ia-sidebar</ac:parameter>


To remove elements or control the display of this area you will need to rebuild the sidebar as needed.


  • No labels