How to change the name of Fields in Listing Search Form

Instead of Keyword, i want to replace that placeholder with “Search” and All Categories with “Home Type” how i can do that, and what code snippet?

Please try this PHP snippet

add_filter(
	'hivepress/v1/forms/listing_search',
	function( $form ) {
		if(isset($form['fields']['s'])){
			$form['fields']['s']['placeholder'] = 'Search';	
		}
		
		if(isset($form['fields']['_category'])){
			$form['fields']['_category']['placeholder'] = 'Home Type';	
		}
		return $form;
	},
	1000
);

Thanks for the help,

How i can show the dates feature in search it was showing now it’s not showing in search and also in hivepress setting using default search option

Please check if time slots are disabled in HivePress/Settings/Bookings, also multiple bookings per time period should be disabled - these booking modes are not supported for the dates availability search yet.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.