Turn Off comments on specific Confluence page

Hi friends,

It is possible turn off the comment option only for specific page in confluence.

Thanks in advance,

Karthik A.

4 answers

1 accepted

0 votes
Accepted answer
Mirek Community Champion Nov 28, 2013

Hi Karthik,

As I know this is not possible OOTB. From current options only using a plugin is a way to do it. You can write your own or use one of the existing on Marketplace for example Community Forms that allows locking comments on specific pages - https://marketplace.atlassian.com/plugins/com.adaptavist.confluence.forums

I hope that will help.

Best Regards,



I get this by adding a HideElements macro to the page. It was best solution for me =)

Hi Karthik,

You can hide the comments button using below Javascript.

<script type="text/javascript">

You need to add this script in a html macro on a page where , you want to hide comments.


Will this work for Confluence OnDemand as well?


This will not work, because the HTML macro is severly limited in Confluence OnDemand (for security reasons).

Best regards,


Kapil, your answer works but it has a typo. Also you need to enable html macro: 1. In Confluence go to: Admin > General Configuration > Manager Add-ons Find the 'Confluence HTML Macros' under System add-ons. Enable the 'html' module. CAUTION - this has serious security consequences. 2. Edit the page where you wish to hide comments. Insert the 'html' macro. Paste the following text into the html macro - note the extra ')' on line 4: <script type="text/javascript"> AJS.toInit(function(){ AJS.$('#comments-section').hide(); }) </script>

Hi Kapil,

Thanks for your updates, i add this script in a HTML comment macro on a page. But still the comment is visible.

Is there is any way to hide that comment.


Karthik A.

Hi Karthik,

Can you try this script.

&lt;script type="text/javascript"&gt;
 for (var i=0; i&lt;nr_li; i++) {
    // if the element has the class fom 'clasa' parameter
    if(tags_li[i].getAttribute('class') == 'innerCell'){
		 tags_li[i].style.overflow = 'visible';
			//tags_li[i].style.overflow-y= 'visible';


this method worked for me on my server instance! thanks =)

It worked for me, thank you!

Worked in Atlassian Confluence 5.4.4. Thank you! smile

is there a way to make submitted comments invisible on page until an administrator approves it?

Minh Tran Atlassian Team Apr 04, 2018

@Taiwo Ojo I believe Confluence does not support that kind of functionality

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,526 views 25 14
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you