Last active
December 31, 2015 05:58
-
-
Save srikat/7943991 to your computer and use it in GitHub Desktop.
Removing Simple Social Icons CSS. http://sridharkatakam.com/taming-important-problem-simple-social-icons/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* Stop Simple Social Icons' CSS from loading and load our modified copy | |
add_action( 'wp_enqueue_scripts', 'sk_disable_simple_social_icons_styles', 11 ); | |
function sk_disable_simple_social_icons_styles() { | |
if ( class_exists( 'Simple_Social_Icons_Widget' ) ) { | |
wp_dequeue_style( 'simple-social-icons-font'); | |
wp_enqueue_style( 'simple-social-icons', get_bloginfo( 'stylesheet_directory' ) . '/css/simple-social-icons.css', array(), CHILD_THEME_VERSION ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment