Created
October 23, 2013 10:31
-
-
Save robneu/7116230 to your computer and use it in GitHub Desktop.
Disable the output of styles in the Simple Social Icons plugin from StudioPress.
function remove_widget_action() {
global $wp_widget_factory;
remove_action( 'wp_head', array($wp_widget_factory->widgets['Simple_Social_Icons_Widget'], 'css') );
}
add_action('wp_head', 'remove_widget_action', 1);
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trying this with Genesis Sample theme.
Results in a Fatal Error.
"Fatal error: Call to undefined method Simple_Social_Icons_Widget::get_instance() in /Users/sridhar/Sites/genesis.dev/wp-content/themes/genesis-sample/functions.php on line 89"
Simple Social Icons plugin is active.
Any ideas?