Remove review stars

Hello,
How can I make star ratings optional?
Or how can I remove, hide the stars?
I don’t want the stars to be shown anywhere.

Hi,

Please use this CSS snippet How to add custom code snippets - HivePress Help Center :

.hp-template--listing-view-page .hp-form__field--rating {
	display: none;
}

Please note that it can require further customization.

I believe this will be useful to you.

Andrii, thanks for your help, but it doesn’t work.
The stars continue to show, and when I want to leave a review it won’t let me publish it.

andrii, I don’t need the star plugin.
(I only have Hivepres plugins and am using ListingHive.)

Please could you help me?

Hi,

I see. Please use these PHP snippets instead How to add custom code snippets - HivePress Help Center :

add_filter(
	'hivepress/v1/forms/review_submit',
	function( $form ) {
		unset( $form['fields']['rating'] );

		return $form;
	},
	1000
);

add_filter(
	'hivepress/v1/models/review',
	function ( $model ) {
		$model['fields']['rating']['required'] = false;

		return $model;
	},
	1000
);

Please note that it can require further customization.

I believe this will be useful to you.

1 Like

andrii
yes it worked
thank you so much :slightly_smiling_face: