WordPress: Remove Recent Comments Inline CSS

With the latest WordPress 4.2 comes with the new Emoji feature that allows you to use the new Emojis in WordPress. Annoyingly the new feature includes a load of JavaScript and CSS and considering we have never needed Emojis and most probably never will, our pages are unnecessarily bloated.

To remove the JS and CSS used by the Emoji feature, simply add the following to your functions.php file

remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'wp_print_styles', 'print_emoji_styles' );
remove_action( 'admin_print_styles', 'print_emoji_styles' );
Free Graphics, Icons, Tutorials
Free Graphics Free Christmas Vector Icon Graphics Pack 2017Free Fitness Vector Icons Graphics PackFree Camping Vector Graphics PackFree Summer Graphics PackFree File Icon PackFree Fast Food Vector Graphics
Sharing is caring...
Like & Follow
Share the love, share this page! Facebook Twitter Google Digg Reddit LinkedIn Pinterest Email
Close [X]
The Web Taylor
1000 Lakeside North Harbour Portsmouth, Hampshire PO6 3EN
02392 123358