Hide Comments and Rating on specific knowledge Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2024 12:19 PM
Can anyone help to find the solution: Hide Comments and Rating on specific knowledge Portal.
Tried to do by the following ways, but it didn't work:
1. Knowledge Management Widget
2. System Properties
3. Roles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2024 06:23 AM
Thanks, but it's not available publicly. Here is the screenshot for your review:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2024 09:27 PM - edited 10-12-2024 09:29 PM
This is what we are using to block the ratings section on one of our sites and the class is the same as yours. Perhaps give it a shot:
.kb-container-column .author, .kb-container-column .kb-title-header, .kb-container-column .kb-panel-heading, .kb-container-column .published, .kb-container-column .views, .kb-container-column .text-nowrap.ng-scope, .kb-container-column .kb-header-line, .kb-container-column .kb-line, .kb-container-column .kb-permalink-separator, .kb-container-column .kb-permalink, .kb-container-column .rating-section, .kb-container-column .help-use-text {
display: none;
}
You could also try this (if you're not familiar with CSS, the !important is a way to say "Don't apply other styles, just this one"). It feels a little hacky and many consider it poor practice (they would say that the CSS is poorly created if you need it) but it's common to see in the platform because we have styles forced upon us.
.kb-container-column .author, .kb-container-column .kb-title-header, .kb-container-column .kb-panel-heading, .kb-container-column .published, .kb-container-column .views, .kb-container-column .text-nowrap.ng-scope, .kb-container-column .kb-header-line, .kb-container-column .kb-line, .kb-container-column .kb-permalink-separator, .kb-container-column .kb-permalink, .kb-container-column .rating-section, .kb-container-column .help-use-text {
display: none !important;
}
I would have thought you could simply do this:
.rating-section {
display: none !important;
}
I would also put this at the page level myself for simplicity.