Skip to main content
Login Join
Snippet · PHP

Disable WordPress Emojis

Shared by Amit Dholiya · May 13, 2026

16 views
1 upvote
Back to Snippets

WordPress loads emoji scripts and styles on every page. Removing them can slightly improve page speed and reduce unnecessary requests.

Steps

  1. Open your WordPress theme functions.php file.
  2. Add the code below at the end of the file.
  3. Save the file.
  4. Clear your cache if you use a caching plugin or CDN.

Done — WordPress will stop loading default emoji scripts and styles.

remove_action('wp_head', 'print_emoji_detection_script', 7);
remove_action('wp_print_styles', 'print_emoji_styles');
Know a different way to do this? Add your approach as a variation so folks can compare them side by side.
Submit a variation

0 comments