Closed jdelia closed 7 years ago
Thanks, @jdelia. If you add a default value for the new icon too, that notice will disappear:
add_filter( 'simple_social_default_styles', 'custom_add_new_icon_default' );
function custom_add_new_icon_default( $defaults ) {
$defaults['youtube-alt'] = '';
return $defaults;
}
I have updated the wiki entry to mention this. Thanks for your report!
Thank you Nick.
After adding a custom icon per instructions, I receive this notice (with debug and trace on) when I first add a widget to a widget area. Once the widget area is saved, the notice is gone and does not return.
Notice: Undefined index: youtube-alt in /Users/site/Documents/Websites/sample.dev/wp-content/plugins/simple-social-icons/simple-social-icons.php on line 319
Code added to functions.php