How to Disable WordPress Emoticons

Assuming you have access to your WordPress theme folder, you can add a few lines to prevent the script from generating on the frontend.

WordPress new emoji graphics

Add the following lines within the file.

To display these Emoji, WordPress loads a script, wp-emoji-release.min.js, behind the scenes. However, if you find that you do not use Emoji much, there is not point on loading this script, and you might want to consider removing this feature. Here are two ways you can do so.

Method #1: Using WordPress Hook

Navigate to your WordPress theme folder, and open the functions.php file.

  1. If you had added WordPress classic emojis in one or more of your old posts, disabling Emojis will leave the :-) in plain text. If you like the old ways better, install Classic Smilies plugin by Samuel Wood (Otto). This plugin, not only disables the new Emoji, but will also bring back the old icons to be at your disposal.

  2. You can also deploy the plugin as a must-use plugin which prevents it from being deactivated, and which will affect all the network on your site.

    That’s it. Hopefully you find this tip useful.

    1. WordPress keeps improving with new features in each new edition. Some of these new features are so subtle that you might have overlooked them. In version 4.2, for example, WordPress adds a set of new Emojis which you could use to make your post more fun and expressive.

    2. Search for: “Disable Emojis“. The plugin is developed by Ryan Hellyer.

      The Disable Emojis plugin
    3. Install and activate the plugin.

    In WordPress Administration, navigate through the Plugin > Add New menu.

    The plugin does not offer settings nor options; it works out-of-the-box and the Emoji should now be completely disabled. Using this plugin, the disabled Emoji will still be retained even with a theme change.

    WordPress old smilies
    remove_action('wp_head', 'print_emoji_detection_script', 7); remove_action('wp_print_styles', 'print_emoji_styles');
  3. Save the file and reload the homepage or (any page) of your site. These lines should remove the script as well as the styles required to display the Emoji all together.

Method #2: Using WordPress Plugin

If you are reluctant to edit the functions.php, you can install a plugin instead.


Leave a Reply