Custom field – add custom icon, html… before and after field value

Content Views Pro helps you to show name, value of custom field easily.
But how to add custom icon, text… in front of field’s value.
Please add this code to file functions.php of your active theme:

// CVPro - Prepend prefix for custom field
add_filter( 'pt_cv_ctf_value', 'cvp_theme_ctf_value', 100, 3 );
function cvp_theme_ctf_value( $value, $key, $post ) {	
	if ( $key === 'ABC' ) {
		$value = 'YOUR CUSTOM HTML BEFORE' . $value . 'YOUR CUSTOM HTML AFTER';
	}
	
	return $value;
}

Please replace ABC with name of your custom field.