Disable WordPress Emoji Script Site-Wide

WordPress loads emoji scripts and styles by default on every page. While this allows emojis to display properly across browsers, it can also add unnecessary HTTP requests and slightly slow down your site. This snippet disables WordPress emoji scripts and styles site-wide, helping you improve performance and page load speed.

// Remove emoji detection
remove_action('wp_head', 'print_emoji_detection_script', 7);

// Remove emoji styles
remove_action('wp_print_styles', 'print_emoji_styles');
PHP

Usage:

Usage: Disables WordPress emoji script site-wide to improve performance.

Benefits:

  • Improved Performance – Reduces unnecessary scripts and styles.

  • Cleaner Source Code – Removes extra emoji-related HTML and CSS.

  • Lightweight & Safe – No plugins required; safe for all WordPress themes.

Frequently Asked Questions

No. It only prevents WordPress from loading emoji support scripts and styles. Standard emojis may not display in older browsers, but modern browsers handle them natively.
Yes. You can wrap the code in a conditional check, like is_page() or is_single(), to disable it only on specific pages.
Absolutely. This snippet works well alongside caching and optimization plugins, and can help reduce page load size.

Related Links

Related Snippets

Display Gravity Forms Entries for the Logged-In User
Display Gravity Forms submissions for logged-in users on the frontend using a simple shortcode. Learn...
Hide WooCommerce Prices for Non-Logged-In Users
Hide WooCommerce product prices for visitors who aren’t logged in. It will encourage users to...

Leave a Reply