We would like to hide the comments section at the end of all wiki pages, except when it is a blog page. Inline comments should still work on all pages. Users should not have to include a user macro every time.
I have tried the following custom CSS in my local confluence 6.14 instance based on the official docker image from atlassian and the following line works
<style>body:not([class~=“view-blog-post”]) #comments-section { display:none; }</style>If I put the same code in our real 6.14 system all comment sections are hidden including the ones on blog pages, even though they should still be visible. (see screenshot of developer tools).

Is my CSS wrong, or is there another way to achieve the same outcome?