Disabling comments on Confluence page
Asked by shruthi sj:

Hello,

I would like to disable comments on required page on confluence and the confluence im using is Cloud based.

I tried html macro and script inside it, which did not work, can anyone help me here.

Thanks,

Shruthi SJ


Answers:
author: shruthi sj
body: Thanks everyone for actively responding... i did manage to remove comment permission from space level itself. (Confluence Cloud)

comments: author: Minh Tran
body: That sounds a way to achieve what you need.


author: Jonathan Smith
body: Server solution (not sure if works in cloud):

If your OK with hiding comments space wide, you can hide various elements though Space StyleSheet:

#comments-section {

display:none !important;

}

More info can be found here: <https://confluence.atlassian.com/confkb/how-to-hide-elements-in-confluence-using-css-or-javascript-313458894.html>

comments: author: ManuR
body: To add to this reply, if you have something like the **Style** macro available, you could put a single **Style** macro on the pages you wish to disable comments on and use the CSS proposed by Jonathan above :)


author: Hector Barquero
body: adding for readers: as of Dec 2023, Confluence server (7.19+) solve by [@Jonathan Smith](/t5/user/viewprofilepage/user-id/1194895) still works as a space-wide solution.  

To note: removing comments this way does not delete them/resolve them. If you want to unhide them, simply remove the same syntax from your stylesheet:  

#comments-section {  
display:none !important;  
}

Perfect solution for tech writers cleaning up legacy knowledge base spaces and maybe wanting to get rid of some content without removing it entirely.


author: Jonathan Smith
body: [@Hector Barquero](/t5/user/viewprofilepage/user-id/5377506) I hope your migration is going smoothly (if you are migrating right now).


author: Minh Tran
body: [@shruthi sj](/t5/user/viewprofilepage/user-id/1204496) just in case you use Confluence server, you can check out the answer here <https://community.atlassian.com/t5/Confluence-questions/Turn-Off-comments-on-specific-Confluence-page/qaq-p/298750>


author: Thomas Schlegel
body: Hi [@shruthi sj](/t5/user/viewprofilepage/user-id/1204496),

this app promises to hide various things from pages:

<https://marketplace.atlassian.com/plugins/de.scandio.confluence.plugins.hideelements-macro/server/overview>

I haven't tried it yet.

Another option is, putting a javascript on your page like this one described here:

<https://confluence.atlassian.com/confkb/how-to-disable-commenting-on-an-individual-page-695107603.html>

comments: author: Thomas Schlegel
body: Ah, now I see, you are on cloud. Then, my answer is wrong, sorry. The app and javascript is only possible on server instances.


author: shruthi sj
body: Hello Thomas,

[https://marketplace.atlassian.com/plugins/de.scandio.confluence.plugins.hideelements-macro/server/overview](https://marketplace.atlassian.com/plugins/de.scandio.confluence.plugins.hideelements-macro/server/overview?_ga=2.197186472.6832451.1522645303-27934690.1522301119&_gac=1.258856440.1522301121.Cj0KCQjw-uzVBRDkARIsALkZAdmshbKdN8YtRgBbM4n-0tw_Vzj5xHSh4b6C6JHIHIdHPaCHP_VzZ_EaAv5HEALw_wcB) . - This doesn't work for cloud

[https://confluence.atlassian.com/confkb/how-to-disable-commenting-on-an-individual-page-695107603.html](https://confluence.atlassian.com/confkb/how-to-disable-commenting-on-an-individual-page-695107603.html?_ga=2.197186472.6832451.1522645303-27934690.1522301119&_gac=1.258856440.1522301121.Cj0KCQjw-uzVBRDkARIsALkZAdmshbKdN8YtRgBbM4n-0tw_Vzj5xHSh4b6C6JHIHIdHPaCHP_VzZ_EaAv5HEALw_wcB) . - i have included in html macro in particular page but no luck :(

Thanks,

Shruthi


author: Minh Tran
body: [@shruthi sj](/t5/user/viewprofilepage/user-id/1204496) i doubt you can use those plugins in cloud. html macro is restricted for security reason in cloud as far as i recall


author: Suren Raj
body: Yes, HTML macro is a restricted function in Cloud.


author: Suren Raj
body: Hi, Shruthi.

I understand you'd like to disable comments in specific pages, however, I'm afraid this feature was already requested in times past but not resolved, as you can check below:

\* \[CONF-7742 - Allow comments to be disabled on a page or blog post\|<https://jira.atlassian.com/browse/CONF-7742>\].

You might want to navigate to your Space Permission and disable **Add Comment** permission to certain user or group.

comments: author: shruthi sj
body: Hello Suren,

Thanks for the quick reply :)

I have done the same thing, remove add comment permission but this removes it from whole space.

Thanks,

Shruthi SJ