How to dequeue the inline styles in ?
-
Hi,
I’m using the Simple Social Icons on WP Website, a yet to be launched website that I want to be as optimized for performance as it possibly can be.
Part of the optimizing process is to get rid of all inline CSS in the <head></head> of the website.
Simple Social Icons adds some inline styling to the head. I will include these in the simple-social-icons-font-css stylesheet.
I would like to know how I can prevent the plugin from loading these inline styles, by adding an action and function to my functions.php.
I know that the inline styles are being loaded in the <head> by this file:
functions/simple-social-icons/simple-social-icons.phpThere’s a line of code that adds the styles to the <head>:
/** Load CSS in <head> */ add_action( 'wp_head', array( $this, 'css' ) );
I want this to be undone using my functions.php and not by editing the ‘core’ file.
I don’t know how to do this in this particular situation. So, please help me ??
Cheers!
Rick
- The topic ‘How to dequeue the inline styles in ?’ is closed to new replies.