0

I created a discussion board and would like to hide the new discussion part as well as the views listed below and the line (divider) that is underneath that too.

Is there any kind of code to help in hiding that section?

I'm not sure where to turn to. I've gone down a rabbit hole and can't find anything or anyone who has tried hiding this whole section.

enter image description here

1 Answer 1

1

Try adding below custom CSS on the SharePoint page where you have added your web part:

<style>
    div.ms-comm-forumContainer div.ms-comm-heroLinkContainer, div.ms-comm-forumContainer div.ms-comm-forumHeaderContainer {
        display: none !important;
    }
</style>

Use Content Editor or Script Editor web part to add this CSS.

Output:

enter image description here

1
  • 1
    Thanks! That helped!
    – SPSN00B
    May 19, 2021 at 13:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.