Support » Plugins and Hacks » [Resolved] Change Avatar Size

[Resolved] Change Avatar Size

Viewing 8 replies - 1 through 8 (of 8 total)
  • Can you send a link? I don’t use a widget version, but I can help you, if you’ll show me your page.

    THanks. Here you go:

    Id like the gravatar to be big enough so dashboard, profile and logout are lined up.

    So, now you have 38px and you need size like 80px. You can use just css, but that’s bad for rendering. Here’s your code:

    <img alt="" src="http://1.gravatar.com/avatar/f37c7a5061736354779a1f540edcc2d8?s=38&d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D38&r=G" class="avatar avatar-38 photo" height="38" width="38">

    Size of your avatar is inside this link in middle: “?s=38” If you change this on “?s=80“, your size will change. After it you must replace also height and width="38"with “80“. It’s defined also in classname img.avatar.avatar-38.photo, so if you want, you can add some styling in here.

    What is this plugin you use for sidebar?

    And very nice site, by the way.

    Thanks for the info. The widgets Im using are called “Social Login” and “Sidebar Login”. Actually I guess it’s not just a Gravatar issue. It would be the same for someone who logs in and doesnt use Gravatar. Also, Im not exactly sure which file I should edit to make the changes you are talking about.

    In plugins/sidebar-login/includes/class-sidebar-login-widget.php on line 269 is a code:

    echo '<div class="avatar_container">' . get_avatar( $this->user->ID, apply_filters( 'sidebar_login_widget_avatar_size', 38 ) ) . '</div>';

    Here try 38 replace with 80.

    ok thanks. Ill give it a shot when I have my other (bigger) issue sorted out.

    That worked. Thank you.

    You’re welcome!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Change Avatar Size’ is closed to new replies.