WordPress has added support for Emoji. It’s super easy to use. This happens anywhere on a WordPress site. So if you put an emoji in a post or page, WordPress detects it for you and replaces the text or ascii character (text character) with the matching emoji symbol. It’s pretty, easy to use. It comes enabled by default with WordPress, since version 4.2. Unfortunately, when you add any ascii character that matches an emoji, it will be changed to an emoji, no matter where it is on the site or what file it is being produced from. For example, it could happened to characters that are coded into your `header.php`.
Don’t get me wrong. Emoji can be fun and I do like it. Also, WordPress is my content management system (CSM) of choice. But there is currently no option in the admin section to turn this feature off. Not everyone wants to use this feature. For example, what if you have a business that offers services for something very serious. You probably don’t want to have those playful emojis popping up. Well, there is a simple way to remove the emoji feature from your WordPress site and it only requires you to add a few lines of code to one file in your current WordPress theme. Here are the simple instructions.
- Open the
functions.phpfile, located in your active WordPress theme folder (/wp-content/themes/your-theme/) in a plain text editor.
- Copy the following text and paste it at the bottom of the file. Make sure you post it above the last line that has the characters
- Save the file to the server.
- Enjoy your emoji free site!