How to disable Emojis on WordPress

Who doesn’t enjoy using emojis? These small symbols are ideal for conveying thoughts or feelings, and I utilise them frequently. However, I refrain from using them on WordPress.

Call me old-fashioned, but I fail to see how emojis enhance my readers’ experience.

The Emoji file is approximately 10.5kb in size, so it should not cause any issues for your website. However, as your website expands, it is beneficial to reduce its weight to improve its speed. After all, no one wants to be on a sinking ship.

One crucial optimisation technique for WordPress websites is to minimize the number of HTTP requests they generate: the fewer files your website needs to load, the better its performance will be.

You can disable Emojis in two ways: either by using a plugin or by deactivating them directly with a simple code snippet.

If you do not want to delve into the code, you can use the Disable Emojis plugin to deactivate Emojis on WordPress.

However, if you prefer to be more hands-on like me, simply copy and paste the code snippet below into your child theme’s functions.php file or take it up a notch by adding the snippet as a custom plugin.

// Remove WordPress Emojis & Styles
remove_action('wp_head', 'print_emoji_detection_script', 7);

// Remove Admin Emoji Scripts and Styles
remove_action('admin_print_scripts', 'print_emoji_detection_script');

// Remove Emoji Scripts and Styles
remove_action('wp_print_styles', 'print_emoji_styles'); 

// Remove Emoji Scripts and Styles
remove_action('admin_print_styles', 'print_emoji_styles');

// Remove DNS-Prefetch Meta For Emojis (
add_filter('emoji_svg_url', '__return_false'); 

If this snippet code is not working please contact us.

WordPress Maintenance from £25.99/month

Experience unparalleled WordPress support and maintenance with our exceptional service plans. Entrust us with all your WordPress needs, guaranteeing the seamless operation and upkeep of your website.

Get Started