Hi Falk,
I still have no idea what are the fields you talking about. I presume its Search input and near input fields.
If thats the case use this code.
remove_action( 'geodir_search_form_inputs', 'geodir_search_form_search_input', 20 );
add_action( 'geodir_search_form_inputs', 'custom_geodir_search_form_search_input', 20 );
function custom_geodir_search_form_search_input() {
$default_search_for_text = SEARCH_FOR_TEXT;
if ( get_option( 'geodir_search_field_default_text' ) ) {
$default_search_for_text = __( get_option( 'geodir_search_field_default_text' ), 'geodirectory' );
}
$new_style = get_option('geodir_show_search_old_search_from') ? false : true;
if($new_style){
echo "<div class='gd-search-input-wrapper gd-search-field-search'>";
}
?>
<input class="search_text form-control" name="s"
value="<?php if ( isset( $_REQUEST['s'] ) && trim( $_REQUEST['s'] ) != '' ) {
echo esc_attr( stripslashes_deep( $_REQUEST['s'] ) );
} else {
echo $default_search_for_text;
} ?>" type="text"
onblur="if (this.value.trim() == '') {this.value = '<?php echo esc_sql( $default_search_for_text ); ?>';}"
onfocus="if (this.value == '<?php echo esc_sql( $default_search_for_text ); ?>') {this.value = '';}"
onkeydown="javascript: if(event.keyCode == 13) geodir_click_search(this);">
<?php
if($new_style){
echo "</div>";
}
}
add_filter('geodir_search_near_class', 'custom_geodir_search_near_class');
function custom_geodir_search_near_class() {
return "form-control";
}