How to hide the 'Edit in Word' button

Platform Notice: Data Center Only - This article only applies to Atlassian apps 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

Symptoms

There is a document embedded in the page that shows the 'Edit Document' button which you would rather not see.

Cause

Normally the edit but is visible, as shown below

(Auto-migrated image: description temporarily unavailable)

But you would rather not have it be visible, as shown below

(Auto-migrated image: description temporarily unavailable)

Resolution

Add the following to the stylesheet of the space (or in confluence-admin for all spaces) where you would like have the edit button hidden from pages.

.office-editable {display:none}
  1. Enter the space in question

  2. Click 'Browse' -> 'space admin' (or 'confluence-admin' to apply to all existing and future spaces)

  3. Click 'Stylesheet' under 'look and feel' in the left hand nav

  4. Click 'edit'

  5. Paste in '.office-editable {display:none}'

  6. Click save

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.