How do you disable page comments but keep inline comments enabled?

Anthony Wood March 9, 2018

Inline comments are great because you can discuss an issue and then resolve it.

Page comments (the ones at the bottom of the page) can't be resolved, so they are just always visible, even if they have been fully resolve.

For one of my spaces I want to prohibit the use of page comments but enable (and encourage) inline comments.

I can't work out how to do this.  I can only disable/enable page and inline comments together.

Thanks in advance.

3 answers

1 accepted

5 votes
Answer accepted
Stephen Deutsch
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.
March 13, 2018

One option would be to go to the space for which you want to hide the comments, then click on Space Tools, Layout, Stylesheet, and then add the following line:

#comments-section { display:none; }
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.
March 13, 2018

Love a white tape approach! ;-)

Anthony Wood March 14, 2018

This works just fine for me.  Thanks very much :-)

As a follow up question.  Do you know how I can disable comments on a single page (rather than a whole space), but still keep inline comments enabled?  I also have a need for this.

Stephen Deutsch
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.
March 14, 2018

My suggestion would be to create a user macro with the following content:

## @noparams
<style>#comments-section { display:none; }</style>

Make sure that it's visible only for Confluence Administrators, call it something like "Disable Page Comments", key like "disable-page-comments", and then insert it into the page(s) for which you want to disable page comments.

Koosh Shah February 18, 2019

Where do I find Space Tools > Layout > Stylesheet? I don't seem to have these options available. Is this a restriction issue perhaps?

 

[5b38c25225dbe580c6f8ac414416b093]_Image 2019-02-18 at 3.49.34 PM.png

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.
February 18, 2019

Under the Look and Feel tab.

Koosh Shah February 19, 2019

Yup went there and there is no regular Stylesheet. There is one for PDF Export Stylesheet which is not relevant.

Screenshot:

https://cl.ly/4fa81b7313cd

 

I think I just might have a different version of Confluence :(

Koosh Shah February 26, 2019

@Bill Bailey any idea? Do you think it has to do with different versions of Confluence?

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.
February 26, 2019

Well the screenshot you added shows the Look and Feel tab. Is non-functional? What version are you using?

Koosh Shah February 27, 2019

This is what I see:

 

Image 2019-02-19 at 9.10.22 AM.pngNo idea which version I am on.

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.
February 27, 2019

OK, you don't have enough permissions. According to the latest docs:


Note: By default, only system administrators can edit the CSS for a space or for the site. To allow any user with Space Admin permissions to edit the CSS for a space, go to > General Configuration > Security Configuration and select Custom Stylesheets for Spaces.

styling-confluence-with-css


So at a min, you need to be a Space admin and have the sys admin enable the permission.

You can find your Confluence version is typically displayed at the bottom of the page (above the Atlassian logo).

Dave Hulbert
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!
April 22, 2021

This doesn't work on the cloud hosted version :-(

https://support.atlassian.com/confluence-cloud/docs/functional-differences-in-confluence-cloud-vs-server/

> On Atlassian Cloud, Confluence uses a custom theme that can't be modified or updated using custom HTML or CSS.

 

Any workarounds here?

Chris Iacovelli May 19, 2023

Is there any way to do this for a set of pages within a space and not the whole space? I would like to prohibit some pages and not others on one of many spaces i have.

Thoughts/Ideas would be appreciated.

0 votes
Irina_Bel_Stiltsoft_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
December 8, 2021

Hi @Anthony Wood ,

Once you disable Comments permissions on a space level, users aren't able to leave both inline and page comments within this space. However, a workaround might be found in the Talk - Advanced Inline Comments app. Once you disable Comments permission to disable the comment section on a page, you can leave inline comments (talks) with our app. You only need Pages or Comments permissions to leave them.

2021-12-08_20-25-06.png

Moreover, with our app, you can restrict viewing for the talks on a space level or/and for the specific comment thread. Say, you want your comments to be visible only internally. You can set space permissions for the comments only for a group or/and users who can view them. However, any user who can make comments can change restrictions for specific comment threads.

image (27).png

0 votes
Patrick Cartier [Candylio]
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.
March 13, 2018

There is no out of the box functionality that allows you to disable comments while enabling inline comments.  Unfortunately comments and inline comments are all under one permission "add comment".

This plugin allows disabling comments on certain pages, but I'm not sure about inline comments:  https://marketplace.atlassian.com/plugins/de.scandio.confluence.plugins.hideelements-macro/server/overview?_ga=2.167233470.1408681685.1520821806-2024476247.1511688550

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events