• Resolved Julinho

    (@razione)


    Hi,

    How to change author image size?

    Tks!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author jmarreros

    (@jmarreros)

    Hi,

    You can use CSS:

    
    body .dcms_author-avatar .avatar{
     max-width: 96px;
    }
    

    change 96px , for example max-width: 120px

    Cheers! ??

    Thread Starter Julinho

    (@razione)

    Hello,

    Thanks for the answer.

    I did the test, but the photo gets blurred.

    Look: https://www.fliplab.com.br/blog/tempario-pessoas-antes-de-sistemas/

    Any tips?

    Plugin Author jmarreros

    (@jmarreros)

    Hi

    You also have to change description and heading margin left

    try this code:

    
    .dcms_author-info .dcms_author-description,
    .dcms_author-info .dcms_author-heading{
        margin-left: 136px!important;;
    }
    

    If you want to use another gravatar size, find this file: /wp-content/plugins/simple-author-bio/includes/class-dcms-simple-author-bio.php

    Search get_avatar function (line 132), and add another parameter, default is 96
    For example:


    $replace[] = get_avatar( get_the_author_meta( 'user_email' ), 512 );

    Ref: https://codex.www.ads-software.com/Function_Reference/get_avatar

    Cheers! ??

    Thread Starter Julinho

    (@razione)

    Works!

    Tks for your support and congratulations for this plugin. ??

    • This reply was modified 6 years ago by Julinho.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Image size’ is closed to new replies.