Hi Leo,
Here’s all I tried; I made a small plugin with this code:
add_filter('widget_title', 'do_shortcode');
function hcwp_add_icon_widget($attr) {
// Atributos
$attr = shortcode_atts(
array (
'id' => 'star',
), $attr, 'icon' );
return '<i class="fa fa-'.$attr['id'].'"></i>';
}
add_shortcode( 'icon', 'hcwp_add_icon_widget');
Then I prepend the icon to the widget title with a shortcode, i.e. [icon id=star], when processed it generates “<i class=”fa fa-star”></i>” in the code…and it worked fine on a local setup without GP, but when I uploaded it didn’t show anything.
Thanks in advance.