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)
- The Definitive Guide about Backdoor Attacks – What are WebShell BackDoors - October 16, 2017
- The Definitive Guide about Backdoor Attacks – What is a backdoor - September 11, 2017
- TradeTraffic.life WordPress Malware Redirect - August 4, 2017