• I would like to disable avatars only on comments. I don’t use my own comments template page, so i think it goes to twentyeleven as default. then inside of it I found:

    wp_list_comments( array( 'callback' => 'twentyten_comment' ) );

    which then leads over to functions.php and changed the function in there[function twentyeleven_comment], but doesn’t seem to turn them off if I take out the echo:

    echo get_avatar( $comment, $avatar_size );

    am I just maybe looking in the wrong place?

    I can’t turn off all avatars via admin because I have it pulling avatar for author, which disappears if I set that to off.

Viewing 1 replies (of 1 total)
  • Hey Hello Woo,

    You can probably do this more easily with CSS than you can with PHP. Unless you’re very patient or very skilled in PHP modifying the WP 3.0+ comments template is almost impossible.

    I can’t remember the comment structure off hand, but I suspect you can use the CSS display:none property to keep those avatars from displaying.

    It’s a quick and dirty solution, but it’ll accomplish what you’re looking for without beating your head against the comment form.

    But if you do want to beat your head against the comments template here’s a good place to start: http://ottopress.com/2010/wordpress-3-0-theme-tip-the-comment-form/

    If you have a link to your site I can give you more detailed directions.

    Cheers,
    Adam

Viewing 1 replies (of 1 total)
  • The topic ‘remove avatars from comments only’ is closed to new replies.