Speed up your WordPress Site by removing Emojis
What is an Emoji? It's a small digital image or icon used to express an idea, emotion, etc., in electronic communication.
How to Disable WordPress Emojis
From 4.2 version and on WordPress supports by default the Emojis. This is a great thing if you like using them in your posts and comments but its not the best thing to do if you want to make sure your WordPress site loads as fast as possible.
If you're looking to remove emoji's from your WordPress installation then you can follow one of the two ways which can be found below:
Disable Emojis using functions.php
The best way to remove emoji from your post and pages header is to add the following code to your theme or child theme(preferably) 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' );
Use a plugin which disables Emojis
If you don't feel comfortable messing with your theme's function.php(even though its a very simple edit) you can use a plugin instead. Ryan Helner created the Disable Emojis Plugin which lets you do just that!
Keep in mind that even though you remove emojis they can still work(without hurting your site speed performance) through browsers which have built in support for them.
Let me know through the comments if you have any questions or need any help.
Latest posts by Makis Mourelatos (see all)
- Extra Hardening: Take care your HTTP Security Headers - May 15, 2017
- WordPress Hacked Redirect, How to Detect and Clean it - January 2, 2017
- 7 WordPress Maintenance Mode Plugins – Which One Stands out? - November 21, 2016