Viewing 8 replies - 1 through 8 (of 8 total)
  • you should see about internal style sheet

    The theme supports author gravatars from https://en.gravatar.com/. If the user has a gravatar it will be correctly sized. Images from other sources will use the comment-author image container inline styles which result in what you’re seeing on your site.

    Thread Starter xng27

    (@xng27)

    @bdbrown, any tips on how to solve this? Thank you!

    Either (a) ask your authors to create a gravatar at the link I posted above, or (b) add this custom CSS to your theme:

    .comment-author .avatar {
        height: 48px !important;
        width: 48px !important;
    }
    Thread Starter xng27

    (@xng27)

    Thanks for your help. Although that custom CSS lines didn’t fix my problem (God knows why), it lead me to this solution:

    on comments.php i changed avatar_size from 96 to 48 and it fixed my problem:

    <ol class="commentlist">
    				<?php wp_list_comments( 'avatar_size=48&type=comment' ); ?>
    			</ol><!--/.commentlist-->

    Glad that works. Only comment I would make is that it doesn’t appear that you’re using a child theme. If you’ve changed the default theme comments.php template file your changes will be lost the next time you update the theme. You can easily set up a child theme following the instructions here:
    https://docs.presscustomizr.com/article/239-using-a-child-theme-with-hueman
    Then copy the theme comments.php file to your child theme. Your site will then use the child theme copy. Only thing you need to worry about is, the next time the theme is updated, checking the comments.php file to see if there are any changes to the code. If there are, you would copy the new version to your child theme and reapply your changes if they’re still needed.

    Thread Starter xng27

    (@xng27)

    @bdbrown Thank you very much for your help! I’ll create a child theme following your instructions. Thank you! Have a wonderful day!

    You’re welcome; glad to help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Avatar overlapping with post comment’ is closed to new replies.