4

I am working on SharePoint online 2013. and inside a Team site collection i added a new "Discussion Board" APP. now by default I got this views/filters:-

enter image description here

Now I am trying to remove the view/filter named "What's Hot" & "Featured", but could not find any link which allow me to remove/hide them. so can anyone advice on these please ?

2

Put a Script Editor Webpart under your Discussion Webpart and put following CSS into it

<style>
.ms-comm-forumContainer .ms-pivotControl-surfacedOpt[aria-label="What's hot"]{
     display:none;
}

.ms-comm-forumContainer li[text="Featured"]{
     display:none;
}
</style>

Replace Texts as you want

  • thanks for the reply. now i was thinking of providing this solution as the last option.. As i was searching for a more structured way of doing so (if possible). such as accessing a setting somewhere and then delete unwanted links .. is this possible? – john Gu Nov 14 '16 at 15:20
  • 1
    I dont think so. Another Approach would be to switch into a different View, for example Flat View in List Settings. – t0. Nov 14 '16 at 15:23
  • now in my case i am showing the discussion board inside my site home page using App part, so the option to switch view is not avilable – john Gu Nov 14 '16 at 15:37
  • another note for your appraoch , now as you are hard-coding the css classes names , so could the classes names be changed in the future (let say after a new feature or after an update is made to sharepoint online) which will cause the linkes to be shown again... so that why i am trying to find a more reliable appraoch .. thanks – john Gu Nov 15 '16 at 0:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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