How to disable wp emoji file without plugin with functions.php

By | June 7, 2017

Remove WordPress emoji code in your header without plugin, you also disable emoji ,Remove Emoji Styles

 

Emoji are introduced in WordPress 4.2. Not everyone is aware about this update. after wp 4.2 version Emoji icons were added into existing WordPress installations. and it’s very good features for that user they use  smileys, or emoticons in there post and page. but you don’t want use this features i prefer not to use it.

because it  includes adding the own code to any existing website pages (JavaScript and CSS)  and it’s effect on your page speed.

Free Plugins To Customize Your Login Screen In WordPress

How to remove the WordPress emoji file

Here is a quick solution  without any plugin  to remove the piece of code  from all  your pages.

Add the following code lines

(in functions.php)

 

// REMOVE WP EMOJI
remove_action('wp_head', 'print_emoji_detection_script', 7);
remove_action('wp_print_styles', 'print_emoji_styles');

remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'admin_print_styles', 'print_emoji_styles' );


if you have any questions ya need to help remove any js and css file , please comment down below.

thanks

Leave a Reply

Your email address will not be published. Required fields are marked *