How to hide or disable "View inline comments" from your Confluence page(s)

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

If you would like to disable the "View Inline Comments" section at the top of your Confluence pages in a specific space (Option 1.) or for entire instance (Option 2.), you can follow the instructions below.

Please note that this will not disable the functionality altogether, and users will still be able to right-click and add comments after clicking the

(Auto-migrated image: description temporarily unavailable)

button, per our documentation: Comment on pages and blog posts.

Solution

Option 1: For a particular space

As this is a customisation, please test it in your stage environment before implementing it into Production.   

  • Go to the space you want to disable the inline comments option

  • Go to Space Tools > Look and Feel > Style sheet

  • Add the below lines under Stylesheet

1 #view-inline-comment-button{display: none;}
  • Click on Save

Before Adding the customization

(Auto-migrated image: description temporarily unavailable)

After adding the customization

(Auto-migrated image: description temporarily unavailable)
(Auto-migrated image: description temporarily unavailable)

Option 2: For the entire instance

  • Go to General Configuration > Custom HTML

  • Add the following HTML code in the "At end of the HEAD" section and save it.

    1 2 3 4 5 6 7 8 9 10 <style> #view-inline-comment-button{ display: none; } </style>

    Before adding the customisation you'll see:

    (Auto-migrated image: description temporarily unavailable)

After adding customisation you'll see:

(Auto-migrated image: description temporarily unavailable)

(Auto-migrated image: description temporarily unavailable)

Updated on April 11, 2025

Still need help?

The Atlassian Community is here for you.