How to Remove Emoji JavaScript and CSS from WordPress Header

Posted by Lasantha Bandara on May 1st, 2015 File Under : wordpress0 Comment

Emoji is small digital images or icons used to express ideas or emotions in electronic communication. When you update your website to WordPress to 4.2, a bunch of JS and CSS codes will be added to the site head. To see these js and CSS codes view page source of your site.

Look at the example image:

Emoji JavaScript and CSS Codes in Header

If you need, you can remove these codes from your WordPress website header. Copy below code and add it to functions.php file in your theme:

remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'wp_print_styles', 'print_emoji_styles' );

Save functions.php file and refresh your site.

File Under : wordpress

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.