Do I turn Emojis support in WordPress?


Attach the new WordPress 4.2 more controversial, curiously, was the addition of support for Emojis well as native Unicode characters in Chinese, Japanese and Korean, mathematical and musical symbols and hieroglyphic symbols.

Okay that many of us did not use the character set to write Han Chinese or Japanese or Korean blanked but who does not use the Emojis daily on your mobile?

I use them a lot. Also, I think we can all agree that we must enhance the mobile use of WordPress , although I think they could have built this support in a more transparent way, or at least have offered an option which enable or not why ?

Basically because from WordPress 4.2 adds a number of lines in the header of our website who carry extra lines of CSS and JavaScript that not everyone wants right? I mean this:
<Script type = "text / javascript" >

            window._wpemojiSettings = { "baseUrl" : "http:\/\/sworg\/images\/core\/emoji\/72x72\/" , "ext" : ".png" , "source" :{ "concatemoji" : "http:\/\/\/wp-includes\/js\/wp-emoji-release.min.js" }};

            ! function (a,b,c){ function d(a){ var c=b.createElement( "canvas" ),d=c.getContext&&c.getContext( "2d" ); return d&&d.fillText?(d.textBaseline= "top" ,d.font= "600 32px Arial" , "flag" ===a?(d.fillText(String.fromCharCode(55356,56812,55356,56807),0,0),c.toDataURL().length>3e3) :( d.fillText(String.fromCharCode(55357,56835),0,0),0!==d.getImageData(16,16,1,1).data[0])):!1} function e(a){ var c=b.createElement( "script" );c.src=a,c.type= "text/javascript" ,b.getElementsByTagName( "head" )[0].appendChild(c)} var f;c.supports={simple:d( "simple" ),flag:d( "flag" )},c.supports.simple&&c.supports.flag||(f=c.source||{},f.concatemoji?e(f.concatemoji):f.wpemoji&&f.twemoji&&(e(f.twemoji),e(f.wpemoji)))}(window,document,window._wpemojiSettings);

        </ Script>

        <Style type = "text / css" >


img.emoji {

    display: inline! important;

    border: none! important;

    box-shadow: none! important;

    height: 1em! important;

    width: 1em! important;

    margin: 0 .07em! important;

    vertical-align: -0.1em! important;

    background: none! important;

    padding: 0! important;

</ Style>

Total anything huh?

If you are someone who prefer to save a few seconds of loading your Web , or simply if you are clear that you do not want to offer the Emojis , can remove this news a couple of ways.

Disable support Emojis with code

Just add the following code to the file functions.php of your theme or your plug-in utilities to disable support Emojis.
// Disable support Emojis

remove_action ( 'wp_head' , 'print_emoji_detection_script' , 7);

remove_action ( 'wp_print_styles' , 'print_emoji_styles' );

And if you want to remove the styles then the lines to add would be these:
// Disable support and styles of Emojis

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' );

Emojis off with plugin support

If you prefer to pull plugins you can install and activate the so-called  Classic Smiles  that disables support Emojis and, as a bonus, return to your site ever emoticons.

Members online

No members online now.