{"id":25196,"date":"2021-06-07T17:00:18","date_gmt":"2021-06-07T15:00:18","guid":{"rendered":"https:\/\/qodeinteractive.com\/magazine\/?p=25196"},"modified":"2021-06-07T12:10:33","modified_gmt":"2021-06-07T10:10:33","slug":"how-to-disable-emojis-in-wordpress","status":"publish","type":"post","link":"https:\/\/qodeinteractive.com\/magazine\/how-to-disable-emojis-in-wordpress\/","title":{"rendered":"How to Disable Emojis in WordPress"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row][vc_column][vc_column_text]While emojis are a great little tool for extending what and how you can communicate in spaces usually reserved for the written work, they\u2019re usage isn\u2019t always welcome or needed. There\u2019s little use for emojis in technical documentation, for example, or in other types of formal writing.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]It won\u2019t matter to WordPress, though. The native <a href=\"https:\/\/qodeinteractive.com\/magazine\/add-emojis-to-wordpress\/\">emoji support<\/a> that was launched in 2015 added scripts to help older browsers display emojis &#8211; whether you want them or not. Those same scripts now do little good. Browsers typically support emojis, so WordPress\u2019 support really only adds to the load, slowing the website down.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]This article will explain to you how to disable emojis &#8211; or at least take care of that bloat code. You\u2019ll learn about:<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;22px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#ways-to-disable-emojis-which-to-choose\">What Are the Ways to Disable Emojis in WordPress and Which to Choose?<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#disable-emojis-using-plugin\">How to Disable Emojis in WordPress Using a Plugin<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#disable-emojis-using-code\">How to Disable Emojis in WordPress Using Code<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;80px&#8221;][vc_widget_sidebar sidebar_id=&#8221;new-top-picks-banner&#8221;][vc_empty_space height=&#8221;80px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\"><a id=\"ways-to-disable-emojis-which-to-choose\"><\/a>What Are the Ways to Disable Emojis in WordPress and Which to Choose?<\/h2>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;21px&#8221;]<div class=\"qodef-single-image-holder    \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"554\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/What-Are-the-Ways-to-Disable-Emojis-in-WordPress-and-Which-to-Choose.jpg\" class=\"attachment-full size-full\" alt=\"What Are the Ways to Disable Emojis in WordPress and Which to Choose\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/What-Are-the-Ways-to-Disable-Emojis-in-WordPress-and-Which-to-Choose.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/What-Are-the-Ways-to-Disable-Emojis-in-WordPress-and-Which-to-Choose-300x172.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/What-Are-the-Ways-to-Disable-Emojis-in-WordPress-and-Which-to-Choose-768x439.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/What-Are-the-Ways-to-Disable-Emojis-in-WordPress-and-Which-to-Choose-620x354.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]An early lesson you learn about WordPress is that there are two major ways of making things happen in the CMS. One is with the use of plugins \u2013 <strong>the best thing about WordPress is the community that\u2019s creating these plugins that let you do incredible stuff even if you can\u2019t write a single line of code.<\/strong>[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]<strong>The other will require you to use code.<\/strong> It\u2019s a more complicated way of getting things done, and it can also be perilous if you\u2019re not sure what you\u2019re doing, or if you don\u2019t have a safe environment to practice first.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]<strong>Not that using plugins is a foolproof way of doing anything<\/strong> \u2013 plugins come with a whole set of issues of their own, including security vulnerability and poor resource management. When disabling emojis in WordPress, you\u2019ll be able to use a plugin, but you\u2019ll also be able to do it with code. Which one you choose will mostly depend on how comfortable you are with altering code on your website.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]<strong>For our part, we\u2019ll show you how to do both.<\/strong> But the decision is up to you.[\/vc_column_text][vc_empty_space height=&#8221;68px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\"><a id=\"disable-emojis-using-plugin\"><\/a>How to Disable Emojis in WordPress Using a Plugin<\/h2>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;21px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"518\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Disable-Emojis.jpg\" class=\"attachment-full size-full\" alt=\"Disable Emojis\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Disable-Emojis.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Disable-Emojis-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Disable-Emojis-768x411.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Disable-Emojis-620x331.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]With a five-star review and over seventy thousand active installations, <a href=\"https:\/\/wordpress.org\/plugins\/disable-emojis\/\" target=\"_blank\" rel=\"noopener\">Disable Emojis (GDPR Friendly)<\/a> is arguably the best choice you have when you want a plugin that disables emojis in WordPress. <strong>You should note, however, that the plugin doesn\u2019t remove emojis completely from your website \u2013 it just removes the code that\u2019s responsible for displaying emojis in older browsers.<\/strong> Newer browsers, which don\u2019t rely on that code and have native emoji support, will still be able to display emojis on your website.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]The plugin is also very simple to use. All you need to do is navigate to <em><strong>Plugins &gt; Add New<\/strong><\/em>, perform a search for \u201cDisable Emojis,\u201d and install and activate the plugin you find. <strong>The plugin doesn\u2019t have any settings \u2013 you\u2019ll find no bells and whistles here, no ads either.<\/strong> Just a plugin that, after you\u2019ve installed and activated it, stops some bloat code without any further input from you.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"518\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Disable-Emoji-Add-Plugin.jpg\" class=\"attachment-full size-full\" alt=\"Disable Emoji Add Plugin\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Disable-Emoji-Add-Plugin.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Disable-Emoji-Add-Plugin-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Disable-Emoji-Add-Plugin-768x411.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Disable-Emoji-Add-Plugin-620x331.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;78px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\"><a id=\"disable-emojis-using-code\"><\/a>How to Disable Emojis in WordPress Using Code<\/h2>\n<p>[\/vc_column_text][vc_column_text]<strong>If you\u2019re set on disabling emojis manually, using code, there are a couple of things you should know.<\/strong> The first one is that you\u2019ll be making changes in your theme\u2019s functions.php file \u2013 a place where you can <a href=\"https:\/\/qodeinteractive.com\/magazine\/wordpress-functions-php-tricks\/\">do some awesome things<\/a>, but also mess up your website pretty badly.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]That brings us to the second thing you\u2019ll need to know \u2013 it might be best that you <a href=\"https:\/\/qodeinteractive.com\/magazine\/wordpress-create-child-theme\/\">use a child theme<\/a> when you\u2019re adding any code to <em><strong>functions.php<\/strong><\/em>. Alternatively, you can rely on <a href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\" target=\"_blank\" rel=\"noopener\">Code Snippets<\/a>, a plugin that\u2019s often used when <a href=\"https:\/\/qodeinteractive.com\/magazine\/how-to-add-custom-code-to-wordpress\/\">adding custom code to WordPress<\/a>. Just don\u2019t do both at the same time.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]<strong>Either way, here is the code you could use to disable emojis manually in your WordPress website:<\/strong>[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">function disable_emojis() {\r\nremove_action( 'wp_head', 'print_emoji_detection_script', 7 );\r\nremove_action( 'admin_print_scripts', 'print_emoji_detection_script' );\r\nremove_action( 'wp_print_styles', 'print_emoji_styles' );\r\nremove_action( 'admin_print_styles', 'print_emoji_styles' ); \r\nremove_filter( 'the_content_feed', 'wp_staticize_emoji' );\r\nremove_filter( 'comment_text_rss', 'wp_staticize_emoji' ); \r\nremove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );\r\nadd_filter( 'tiny_mce_plugins', 'disable_emojis_tinymce' );\r\n}\r\nadd_action( 'init', 'disable_emojis' );<\/pre>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]<strong>For the filter function to remove the tinymce emoji plugin, add these lines of code:<\/strong>[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">function disable_emojis_tinymce( $plugins ) {\r\nif ( is_array( $plugins ) ) {\r\nreturn array_diff( $plugins, array( 'wpemoji' ) );\r\n} else {\r\nreturn array();\r\n}\r\n}<\/pre>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]With that, your website should no longer have any bloat issues from undesired emojis.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;68px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">Let\u2019s Wrap It Up!<\/h2>\n<p>[\/vc_column_text][vc_column_text]Emojis can make communication more fun, expressive, and sometimes even efficient. However, there are lots of situations when they\u2019re not needed, and the support WordPress has for them might actually do more harm than good. So if you\u2019re looking to make your website the leanest, meanest, fastest-loading website out there, you might consider one of these methods to disable emojis.<br \/>\n[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Need to disable emojis for your WordPress website and reduce some bloat? You can do it easily with a plugin or a couple of lines of code &#8211; we&#8217;ll show you!<\/p>\n","protected":false},"author":9295,"featured_media":25299,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[15,4,13],"class_list":["post-25196","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-plugins","tag-tips","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts\/25196","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/users\/9295"}],"replies":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/comments?post=25196"}],"version-history":[{"count":0,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts\/25196\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/media\/25299"}],"wp:attachment":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/media?parent=25196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/categories?post=25196"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/tags?post=25196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}