WordPress.org

Ready to get started?Download WordPress

Forums

change avatar size for children only? (1 post)

  1. neologan
    Member
    Posted 4 years ago #

    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>'
        else
    echo get_avatar($comment,$size='16',$default='<path_to_url>'

Topic Closed

This topic has been closed to new replies.

About this Topic