How to remove or hide the last updated and created by text on a Confluence page
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
Purpose
To remove or hide the last updated and created by text on a Confluence page.
Solution
Open the file <confluence-install>/confluence/decorators/includes/page-metadata.vm
in a text editor and remove the following text:
#if ($page.isLatestVersion() == true)
$action.getText('added.by.user.last.edited.on.date', ["#usernameLink ($page.creatorName)","#usernameLink ($page.lastModifierName)","$action.dateFormatter.format( $page.lastModificationDate )"])
#set ($previousPage = $action.getPreviousVersion($page.previousVersion))
#if ($!previousPage)
<span class="noprint"> (<a href="$req.contextPath/pages/diffpages.action?pageId=${page.id}&originalId=$previousPage.id">$action.getText('view.change')</a>)</span>
#end
#else
$action.getText('added.by.user.edited.on.date', ["#usernameLink ($page.creatorName)","#usernameLink ($page.lastModifierName)","$action.dateFormatter.format( $page.lastModificationDate )"])
#end
Additionally, to hide Last Updated and Created by Text using CSS, go to Confluence Admin >> Stylesheet (Global Stylesheet) and add the following code:
.page-metadata
{
display:none !important;
}
Was this helpful?