How to Remove Emoji Styles and Scripts From WordPress?

Have you heard about WordPress Emoji and used it in your pages or post? Many people don’t use emojis on their web pages. If you are one of them, then you can easily remove this style and scripts. 

Let’s check how to remove emoji style and scripts from any WordPress site. 

Login to your Cpanel or FTP and search for function.php file. Check the following code and paste the code inside your function.php file. Save your file and check your emoji style and scripts. 

				
					// Remove Emoji Styles and Scripts
remove_action('wp_head', 'print_emoji_detection_script', 7); // Remove Emoji's Styles and Scripts.
remove_action('embeded_head', 'print_emoji_detection_script');
remove_action('admin_print_scripts', 'print_emoji_detection_script'); // Remove Emoji's Styles and Scripts.
remove_action('wp_print_styles', 'print_emoji_styles'); // Remove Emoji's Styles and Scripts.
remove_action('admin_print_styles', 'print_emoji_styles'); // Remove Emoji's Styles and Scripts.
remove_filter('wp_mail', 'wp_staticize_emoji_for_email');
remove_filter('the_content_feed', 'wp_staticize_emoji');
remove_filter('comment_text_rss', 'wp_staticize_emoji');
add_filter('tiny_mce_plugins', 'disable_emojicons_tinymce');
add_filter('emoji_svg_url', '__return_false');

function disable_emojicons_tinymce($plugins)
{
    if (is_array($plugins)) {
        return array_diff($plugins, array('wpemoji'));
    } else {
        return array();
    }
}
				
			

If you don’t have proper knowledge in coding or theme structure. Then you can easily remove WordPress emoji from your website dashboard too. 

First, install WP Adminify plugin. You will see a new menu called WP Adminify inside your dashboard menu. Or just take a look at this WP Adminify tweaks option. Click on this menu and then navigate to tweaks > Head option. Search for Remove Emoji Styles and Scripts option and enable it. 

Remove Emoji Styles and Scripts
August 28, 2021
Head Tips and Tutorials
Was this article helpful?

© 2021 - Adminify | All rights reserved

WP Adminfy accepted payment methods