Support » Themes and Templates » change avatar size for children only?

change avatar size for children only?

  • neologan


    OK, my comments loop is handled by functions.php, and i have avatars set at 32:

    <?php echo get_avatar($comment,$size='32',$default='<path_to_url>' ); ?>

    What i’d like to try and figure out is how to make a parent avatar 32px, but make children 16px.

    There must be a way to do this, i do not know php at all really, but an idea along this line should maybe work, just i don’t know how to code 🙂

    if parent echo get_avatar($comment,$size='32',$default='<path_to_url>'
    echo get_avatar($comment,$size='16',$default='<path_to_url>'
  • The topic ‘change avatar size for children only?’ is closed to new replies.