Avatar size

Posted in: Newspaper
Post count: 100

How to increase the size of the avatar ?

Regards,

Clecio

Post count: 20685

Hi,

The theme uses the get_avatar WordPress function – https://codex.wordpress.org/Function_Reference/get_avatar found in the page-author-box.php here – http://prntscr.com/djpthl. The second value ’96’ being the size of the avatar.

Thanks

Post count: 100

I make the changed, but without effect.

The code: http://prnt.sc/djr1ue

Post count: 7909

Hi,

The avatar is used in multiple places(post’s author box, comments…). I’m not really sure whre would you like to change, but I supposes you want to do this for author box on post page. Here you can find the code in this case – http://screencast.com/t/7rMq9jKw but you also need to use custom css – http://screencast.com/t/Qr5zDhttzet

.single .author-box-wrap .avatar {
width: 150px;
}
.single .author-box-wrap .desc {
margin-left: 167px;
}

Thanks!

Post count: 100

Perfect !

Thank you !

Post count: 100

Since the last Newspaper update, the changes have lost their effect.

I have made the modifications, but the photo is still displayed with 96 pixels.

Post count: 23312

Hello,

You should make again this changes at your theme code because the td_module_single_base.php has been overwritten with the latest update and you have lost this modification, as you can see here -> http://screencast.com/t/ZLpN8kmz Please keep in mind that at each update if you do not use the child theme and if the files which are changed cannot be written in child theme, you will lost all of your modifications and then you should make them again.

Thanks for your understanding!

Post count: 100

After an update, I have refacted all the modifications and the avatar continues with the same size.

I disabled WP Cache and nothing.

The examples below:

http://www.screencast.com/t/zdzwfLcWBeYs

http://www.screencast.com/t/pJMeKooxW9X

Post count: 100

One detail…

When changed the .author-box-wrap .desc , I see the modification, but, I see the photo with same size.

Post count: 22421

In the current version, the css needs an extra property as there were a few changes to the code Please use this code:

.single .author-box-wrap .avatar {
width: 150px!important;
}
.single .author-box-wrap .desc {
margin-left: 167px!important;
}
.author-box-wrap .avatar{
max-width:167px!important;
}

Thank you!

Post count: 100

It´s ok now, but, when I visit the author page, I have a different result.

Do you can see below:

http://www.screencast.com/t/QYPlKOnw5JO

Post count: 22421

Well these things happen when you change any size of any element. You have to be very careful as there are multiple places that get affected by any change you make.. For this you have to adjust the author box as well for the new dimension.
Use this css:
.author-box-wrap .desc{
margin-left: 160px!important;;
}

Thanks.

Post count: 100

Perfect.

Thanks for your attention.

Viewing 13 posts - 1 through 13 (of 13 total)
You must be logged in to reply to this topic.