how to remove comments tab from confluence page

Anju S I'm New Here Jan 21, 2018

how to remove comments tab from confluence page. I am using Atlassian Confluence 5.8.18 version.

I have tried to include the below script in HTML Comment Macro, however it did not work.

<script type="text/javascript">
AJS.toInit(function(){
AJS.$('#comments-section').hide();
});
 for (var i=0; i<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';
    }   
  }
</script>

2 answers

Hi, 

I think you could do this with just CSS. Have a look here: https://community.atlassian.com/t5/Confluence-questions/Can-you-Delete-the-Comment-Section-on-Certain-Pages/qaq-p/45498 

 

Screen Shot 2018-01-22 at 10.21.16.png

 

Space Tools -> Look and Feel -> Stylesheet

#comments-section {
display:none;
}

If this answers your question, please mark it as solved.

Are you wanting to remove the comment section below the page, or inhibit the ability of a user to add inline comments?

And only for one page, or space wide?

0 vote

Hi,

 

I can recommend this free app called HideElements for Confluence. You can easily hide lots of elements for a page.

Best,

Max

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

271 views 11 10
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