Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to remove comments tab from confluence page

Anju S
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 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

0 votes
Max Foerster - K15t
Community Champion
January 22, 2018

Hi,

 

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

Best,

Max

0 votes
Christo Mastoroudes [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 22, 2018

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.

Bill Bailey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 22, 2018

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?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events