Tagged: emojis
-
AuthorPosts
-
November 16, 2022 at 12:21 am #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
RalfNovember 16, 2022 at 8:57 pm #1372838Hey 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,
MikeNovember 20, 2022 at 11:28 am #1373253Hi Mike,
it was indeed the caching plugin i am using.
Ralf
November 20, 2022 at 1:19 pm #1373261 -
AuthorPosts
- You must be logged in to reply to this topic.