How to disable/hide Confluence inline comments in a 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

Summary

The inline comments on pages and blog posts are managed by an out-of-the-box plugin embedded in Confluence DC.

This plugin cannot be uninstalled or disable as it may impact confluence in other ways, so, the only option to hide Confluence in-line comments HTML customizations.

Environment

Confluence 8.5

Solution

Be mindful that customisations are not part of our support scope as per Atlassian Support Offerings. Any effort provided to support issues related to customisation will be on a best-effort basis by the support engineer.

Option 1) Hide only the Inline Comment Button

  1. Browse to General Configuration > Custom HTML

  2. Add the following HTML code in the "At end of the HEAD" section.

    1 <style>button[data-key*=inline-comment] { display:none !important;}</style>
  3. Restart your browser and clearing your Browser's cache might be needed for the change to be in effect.

Option 2) Hide the Inline Dialog Content and Inline Dialog Arrow

  1. Browse to General Configuration > Global Stylesheet

  2. Add the following CSS code:

    1 2 3 4 5 6 7 8 .aui-inline-dialog-contents{ display: none; visibility: hidden; } .aui-inline-dialog-arrow { display: none; visibility: hidden; }
  3. Restart your browser and clearing your Browser's cache might be needed for the change to be in effect.

ℹ️ Take into consideration that this second approach could also hide other Inline dialogs that are not related to the inline-comment feature.

Updated on April 24, 2025

Still need help?

The Atlassian Community is here for you.