07/03/2017 at 10:53 am
#427763
Keymaster
@ dominic
It’s better to hook into the cn_output_phone_number filter. That way you can change the HTML markup to suit. Here’s a skeleton filter to get to you started:
add_filter( 'cn_output_phone_number', 'cn_output_phone_number', 10, 4 );
function cn_output_phone_number( $html, $phone, $entry, $shortcode_atts ) {
// $phone->name is the phone name/type
// $phone->number is the phone number.
$html = '<span>' . $phone->name '</span> <span>' . $phone->number . '</span>';
return $html;
}
YOu can add this filter using the Code Snippets plugin. Of course tweak as needed to use the Font Awesome markup.
Hope this helps!
