does anyone have code to change the ‘keyword’ name in the sear box to something more relevant ? thanks
Hello again,
Next time, make sure you use the understated feature of this forum, called “search” (the magnifying glass).
Cheers !
I use the following snippets to provide placeholders for Listings, Job Requests and Vendors. You may be able to use these as a starter.
add_filter(
'hivepress/v1/forms/listing_search',
function( $form ) {
if ( isset( $form['fields']['s'] ) ) {
$form['fields']['s']['placeholder'] = 'Find Services';
}
return $form;
},
1000
);
add_filter(
'hivepress/v1/forms/request_search',
function( $form ) {
if ( isset( $form['fields']['s'] ) ) {
$form['fields']['s']['placeholder'] = 'Find Jobs';
}
return $form;
},
1000
);
add_filter(
'hivepress/v1/forms/vendor_search',
function( $form ) {
if ( isset( $form['fields']['s'] ) ) {
$form['fields']['s']['placeholder'] = 'Find Experts';
}
return $form;
},
1000
);
1 Like
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.