I have to hide star rating in portal.

niveditakumari
Mega Sage

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. 

 

niveditakumari_0-1717497611442.png

 

1 ACCEPTED SOLUTION

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 

SiddharamTakali_0-1717568935698.png

 

 

View solution in original post

10 REPLIES 10

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. 

 

niveditakumari_0-1717528548219.png 

 

Can you please correct me to achieve that. 

 

Regards, 

Nivedita 

 

 

 

 

 

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;
}

 

SiddharamTakali_0-1717529449782.png

 

SiddharamTakali_1-1717529471687.png

 

If my answer helped you , Don't forgot mark it as helpful or correct

Regards,

Sid

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 : 

niveditakumari_0-1717537246332.png

 

Can you please correct me to achieve that. 

 

Regards, 

Nivedita 

 

 

 

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 

SiddharamTakali_0-1717568935698.png

 

 

Hi @Sid_Takali

 

Thank you so much it is working as expected. 

 

Regards, 

Nivedita