Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1372727

    Hi,
    I have disabled Emojis in the theme settings.
    What makes me wonder:
    wp-emoji-release.min.js
    is still loaded.

    From my understanding the Javascript for the emojis should be not loaded when emoji’s are disabled.
    Or did I get something wrong?

    Cheers
    Ralf

    #1372838

    Hey ralfakerkhoff,
    Thanks for your question, when I test the disable emojis option in the Enfold Theme Options ▸ Performance settings the wp-emoji-release.min.js file is not loaded, perhaps you have a caching plugin that is still serving it, or perhaps you are also using caching on your webhost that you need to clear, or perhaps you are also using a CDN like cloudflare that you need to clear?
    Perahps there is a plugin that is conflicting with the theme setting, if none of these suggestions help try adding this function in your child theme functions.php:

    //Disable WordPress Emojis 
    add_action( 'init', 'smartwp_disable_emojis' );
    
    function smartwp_disable_emojis() {
     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_filter( 'the_content_feed', 'wp_staticize_emoji' );
     remove_action( 'admin_print_styles', 'print_emoji_styles' );
     remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );
     remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
     add_filter( 'tiny_mce_plugins', 'disable_emojis_tinymce' );
    }
    
    function disable_emojis_tinymce( $plugins ) {
     if ( is_array( $plugins ) ) {
     return array_diff( $plugins, array( 'wpemoji' ) );
     } else {
     return array();
     }
    }

    If this doesn’t solve then include an admin login in the Private Content area so we can be of more assistance.

    Best regards,
    Mike

    #1373253

    Hi Mike,

    it was indeed the caching plugin i am using.

    Ralf

    #1373261

    Hi,

    Great, I’m glad that Mike could help you out. Please let us know if you should need any further help on the topic, or if we can close it.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.