How to display a banner like the Confluence Documentation Theme
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
Summary
The documentation spaces on this wiki show a banner at the top of every page. Here are instructions on how to add a banner to your own Confluence site.
Solution
Solution
Using the Documentation Theme (Confluence 5.10 and earlier)
The simplest way to add a header or footer to a page is to apply the Documentation theme to your space, and then add the header and/or footer in the theme configuration. See Configure the Documentation Theme.
Using the Default Confluence Theme
Edit the main layout for the space. After the Content div header:
1
2
3
4
5
6
7
8
9
10
11
12
13
## CONTENT DIV BEGINS
<div id="header">
#quickSearch()
<ul id="header-menu-bar" class="ajs-menu-bar">
#if($sitemeshPage.getProperty("page.browse-menu"))
$sitemeshPage.getProperty("page.browse-menu")
#else
#menuMacros_renderGlobalBrowseMenu()
#end
#menuMacros_renderUserMenu()
</ul>
$!sitemeshPage.getProperty("page.breadcrumbs")
</div>
Add the following:
1
2
3
4
<div class="noteMessage">
<strong>This documentation relates to an early version of Confluence.</strong><br>
View <a href="http://confluence.atlassian.com/display/DOC/$title">this page in the current documentation</a> or visit the <a href="http://confluence.atlassian.com/display/DOC/Confluence+Documentation+Home">current documentation home</a>.
</div>
To invoke a macro, use text like:
1
$helper.renderConfluenceMacro("{recently-updated-dashboard:dashboard|showProfilePic=true}")
Was this helpful?