Hi,
I saw a code snippet from Kiran with regards to removing colons from custom fields as shown below.
function _gd_snippet_filed_label_remove_colon( $html, $field_location, $type ) {
if ( ! empty( $html ) ) {
$html = str_replace( ': </span>', ' </span>', $html );
}
return $html;
}
add_filter( 'geodir_custom_field_output_select', '_gd_snippet_filed_label_remove_colon', 999, 3 ); // 'select' field type
add_filter( 'geodir_custom_field_output_multiselect', '_gd_snippet_filed_label_remove_colon', 999, 3 ); // 'multiselect' field type
add_filter( 'geodir_custom_field_output_textarea', '_gd_snippet_filed_label_remove_colon', 999, 3 ); // 'textarea' field type
add_filter( 'geodir_custom_field_output_html', '_gd_snippet_filed_label_remove_colon', 999, 3 ); // 'html' field type
But how do I do the same for business hours? I’m not sure what field type it is as it is a pre-set that comes along with the GD plugin.
Thanks a lot!