Skip links

Remove Emoji Scripts from WordPress Head

WordPress adds emoji script in page header so if you need to remove all traces of emoji script from WordPress head in just one minute using this code snippet where let you filter by WordPress built-in hooks.

Steps to emoji scripts from WordPress Head:

  1. Open WordPress admin panel then go to Appearance > Theme Editor
  2. Open theme functions.php file, if you work localhost open the same file using any code editor IDE
  3. Add the following code at the bottom of the file.
  4. Save the changes.

[php]
remove_action( ‘wp_head’, ‘print_emoji_detection_script’, 7 );
remove_action( ‘wp_print_styles’, ‘print_emoji_styles’ );
[/php]

Did you find the WordPress snippets in this article helpful? Share it with your friends and if you have any questions and want to ask us about it, please don’t hesitate to add comments.

Leave a comment

Explore
Drag