- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 03:41 AM
Hi,
I have to hide star rating in portal. In portal when we open knowledge article there are two places we can see star rating. I know we have system property to hide star rating and when I'm putting that value as false it is hiding star rating in all places. I have to hide star rating only at one place which user has given rating that is available in below personal policy name.
Please see attached screenshot.
Can you please help me with that.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 11:13 PM - edited 06-04-2024 11:26 PM
Hi @niveditakumari I can see you have added /* comments in your code . Use */ syntax to close your comments.
/* This is a single-line comment */
p {
color: red;
}
/* opening comment */ closing comment
Refer this SC. You can see commented code is in golden color and non commented code is highlighting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 12:16 PM - edited 06-04-2024 02:30 PM
Hi @Mark Manders,
I have gone through above given link and when I'm opening it in page in designer it is redirecting me to attached page and I'm not able to find that line which you have added.
Can you please correct me to achieve that.
Regards,
Nivedita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 12:28 PM - edited 06-04-2024 12:31 PM
Hi @niveditakumari Use below code, this will hide rating only for page specific. If you want to hide it globally then set this glide.knowman.show_star_rating property to false.
.text-nowrap.str-rating.ng-scope {
display : none;
}
If my answer helped you , Don't forgot mark it as helpful or correct
Regards,
Sid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 02:42 PM
Hi @Sid_Takali,
I have to only hide it for specific page and I have added given code still it is showing star rating.
Please see attached screenshot :
Can you please correct me to achieve that.
Regards,
Nivedita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 11:13 PM - edited 06-04-2024 11:26 PM
Hi @niveditakumari I can see you have added /* comments in your code . Use */ syntax to close your comments.
/* This is a single-line comment */
p {
color: red;
}
/* opening comment */ closing comment
Refer this SC. You can see commented code is in golden color and non commented code is highlighting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2024 01:20 PM