• Resolved timrourke

    (@timrourke)


    I’ve tried everything I can come up with, but I can’t seem to remove the new emoji detection script from the header. No remove_action/remove_filter approaches seem to effect that darn thing. I can prevent the css styles from printing in the head, but that’s it.

    Any ideas? I’m sure I’m overlooking something dumb, but do give me a hand if you have a way to strip that out.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Marius L. J.

    (@clorith)

    Hi,

    You should be able to remove the emoji support by using remove_action(), it will just require the priority included as well.

    To remove it completely from both front and back end the following works like a charm

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

    Thanks for the start!

    For anyone else looking to cut out both the styles and the scripts, this includes other actions to remove:

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

    Thanks for the solution, I was not liking this either. I am not using this feature but anyways I first notice it because It was throwing an error on EI 10.

    SCRIPT5007: Unable to get property ‘childNodes’ of undefined or null reference
    File: wp-emoji-release.min.js, Line: 2, Column: 172

    sorry for the n00b question. Where do i insert the coding? body?
    TIA

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    In an mu-plugin.

    But you can also use this: https://www.ads-software.com/plugins/disable-emojis/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can't remove emoji detection script’ is closed to new replies.