UPDATE Refrased the question
On the backend widget page
widgets.php, there is a list of available widgets. Items in this list have the same classes and a dynamically generated ID, which changes if a new widget is inserted (alphabetically) into the list. So, there is no reliable way to direct css at individual items in the list.
Is there another way to style individual items in the widget list?
Old, more narrow question
I have a theme which includes a font icon in its full name. It's defined globally like this:
$theme_data = wp_get_theme(); // Retrieves the theme data from style.css $theme_name = $theme_data['Name']; $theme_icon = '<i class="fa fa-wrench" style="font-family:FontAwesome;"></i>'; $theme_full_name = $theme_icon . ' ' . $theme_name;
I can use
$theme_full_name in menus, page titles and so on. There's one exception, however. The theme includes two widgets, which also have
$theme_full_name in their name (the second parameter in the constructor). On the
widgets.php page in the admin only the theme name appears. Apparently the icon is stripped away (as is, presumably, all html that might be in the widget name).
Is there a way to retain the font icon in the widget name?