Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter PKRG

    (@pkrg)

    Thank you for pointing the line to comment.

    PKRG

    (@pkrg)

    @lamentira,

    Thanks for your suggestion but I rather prefer not to alter the core files.

    I added the function hook from Classic Smilies plugin directly to my functions.php.

    function 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_action( 'admin_print_styles', 'print_emoji_styles' );
    	remove_filter( 'the_content_feed', 'wp_staticize_emoji' );
    	remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );
    	remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
    }
    add_action( 'init', 'disable_emojis' );

    But the size of my “old” smileys was still bypassed by the hardcoded size added on each smiley (style=”height: 1em; max-height: 1em;”)

    but thanks to classic smilies code, I was able to style them

    img.wp-smiley, img.emoji {
    height: auto!important;
    max-height:100%!important;
    width: 100%!important;
    }

    The problem is solved on my case.

    Thanks for your help

    Hi folks,

    Since the new wordpress 4.2 update, I can see a class added but also a style added on every smiley

    such as
    <img src=”http://www.domain.com/wp-content/smilies/smiley.gif&#8221; alt=”:smiley:” class=”wp-smiley” style=”height: 1em; max-height: 1em;“>

    So I can not overide that in CSS and my smiley looks ridiculously small. Any guess how to get rid of that ?

    It’s quite a pain to waste time fixing something that was not broken before T_T

    Thanks in advance for any help.

Viewing 3 replies - 1 through 3 (of 3 total)