Support » Theme: Davis » Icons of commentators do not decrease

  • Resolved fedorov

    (@fedorov)



    HI @anlino

    I can not reduce the icons of commentators in your topic to 24px.

    You have the following code in the file comments.php:

    <?php wp_list_comments(array( 'style' => 'div')); ?>

    I tried to insert the code:

    <?php wp_list_comments(array( 'style' => 'div', 'avatar_size' => 24,)); ?>

    But I did not succeed.
    Please help.

Viewing 1 replies (of 1 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi @fedorov,

    The CSS file in Davis has the icons set to 40px as well, so if the wp_list_comments() arguments are set to an avatar size of 26px, the images will still be scaled up to that size. You will need to add the following CSS (via Admin > Appearance > Customize > Extra CSS or a child theme stylesheet):

    .comment-author .avatar { width: 26px; }
    .comment-author,
    .comment-meta { padding-left: 36px; }

    That should change the size of the avatar and move the comment author and comment meta text blocks to retain the original distance between the avatar and the text.

    — Anders

Viewing 1 replies (of 1 total)
  • The topic ‘Icons of commentators do not decrease’ is closed to new replies.