How to disable/hide Confluence inline comments in a page
Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.
Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles 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
- Browse to General Configuration > Custom HTML
Add the following HTML code in the "At end of the HEAD" section.
<style>button[data-key*=inline-comment] { display:none !important;}</style>
- 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
- Browse to General Configuration > Global Stylesheet
Add the following CSS code:
.aui-inline-dialog-contents{ display: none; visibility: hidden; } .aui-inline-dialog-arrow { display: none; visibility: hidden; }
- 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.