Advertisement
srikat

Untitled

Dec 13th, 2013
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.70 KB | None | 0 0
  1. add_action( 'wp_enqueue_scripts', 'prefix_disable_simple_social_icons_styles' );
  2. /**
  3.  * Remove Simple Social Icons styles.
  4.  *
  5.  * Simple Social Icons loads styles with a bunch of !important declarataions.
  6.  * This will disable the style output and allow you to style your icons in your
  7.  * theme more easily.
  8.  *
  9.  * @author FAT Media, LLC
  10.  * @link   http://youneedfat.com
  11.  */
  12. function prefix_disable_simple_social_icons_styles() {
  13.     if ( class_exists( 'Simple_Social_Icons_Widget' ) ) {
  14.  
  15.         /** Dequeue icon styles */
  16.         wp_dequeue_style( 'simple-social-icons-font');
  17.  
  18.         /** Remove the CSS in <head> */
  19.         // remove_action( 'wp_head', array( Simple_Social_Icons_Widget::get_instance(), 'css' ) );
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement