You can use same snippet code for all the widget. Try like this
function gd_custom_ppv_sc_widget_title( $title ) {
/*** Match 1 ***/
$match_title = 'Offers'; // Your current title.
$icon_element = '<i class="fa fa-hand-o-right" aria-hidden="true"></i>'; // Icon element for Offers.
if ( $title == __( $match_title, 'geodirectory' ) ) {
$title = $icon_element . ' ' . $title;
}
/*** Match 2 ***/
$match_title = 'My Offers';
$icon_element = '<i class="fa fa-hand-o-left" aria-hidden="true"></i>'; // Icon element for My Offers.
if ( $title == __( $match_title, 'geodirectory' ) ) {
$title = $icon_element . ' ' . $title;
}
/*** Match 3 ***/
$match_title = 'Another Offers';
$icon_element = '<i class="fa fa-check-square-o" aria-hidden="true"></i>'; // Icon element for Another Offers.
if ( $title == __( $match_title, 'geodirectory' ) ) {
$title = $icon_element . ' ' . $title;
}
return $title;
}
add_filter( 'widget_title', 'gd_custom_ppv_sc_widget_title', 10, 1 );
Thanks