Plugin Author
Tom
(@edge22)
Absolutely, but you’ll need to create a CSS class which has the correct styling and font icon.
Then you can add a new field using this filter:
add_filter('lsi_icons_defaults','my_new_icons');
function my_new_icons() {
$options = array (
'newicon' => array(
'id' => 'newicon',
'name' => __( 'My New Icon', 'lsi' )
),
'anothericon' => array(
'id' => 'anothericon',
'name' => __( 'One More', 'lsi' )
)
);
return $options;
}
This code seems to REPLACE the existing items. I like to ADD a new one…
Plugin Author
Tom
(@edge22)
Sorry about that – can you try this?:
add_filter( 'lsi_icons_defaults','my_new_icons' );
function my_new_icons( $options )
{
$options['new-icon']['id'] = 'new-icon';
$options['new-icon']['name'] = 'New Icon Name';
return $options;
}
Jen
(@digital-isis)
I cannot get this to work. mainly i suspect because the icon must also be included in the fontello @font-face that comes with the package. Please advise, thanks.
I figured it out after some pain ..
A new font set must be generated with Fontello and then replace in the plugin fonts and css.
Plugin Author
Tom
(@edge22)
Alternatively, you can upload your font and css to your child theme – that way you won’t lose anything when you update the plugin 🙂
Jen
(@digital-isis)
thank you! 😀
i couldn’t quite figure out how to append / get around this class .. can you share how you did that?
[class^="lsicon-"]:before, [class*=" lsicon-"]:before {
font-family: "lsi-fontello";
}