Customize the listing search form

Hi,

I’d like to change the word “keyword” that is automatically in the listing search form by “search destination”. Is it possible to do so ?

THANKS

This code may help you:

add_filter(
	'hivepress/v1/forms/listing_search',
	function( $form ) {
		if ( isset( $form['fields']['s'] ) ) {
			$form['fields']['s']['placeholder'] = 'Your text';
		}

		return $form;
	},
	1000
);

Hi,

Please use the Loco Translate plugin, you can check this doc How to translate HivePress - HivePress Help Center

1 Like

Thank you so much this plugin is insane !!!

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