How to disable/hide Confluence inline comments in a page

Still need help?

The Atlassian Community is here for you.

Ask the community

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

  1. Browse to General Configuration > Custom HTML
  2. Add the following HTML code in the "At end of the HEAD" section.

    <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:

    .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.



Last modified on May 23, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.