increase article author avatar size
-
Hello,
Please can you help me increase the article author avatar size
Attachments:
You must be
logged in to view attached files.
Hello,
Use the code below for help, define it in Theme Settings -> Custom CSS.
body .xts-post-author .avatar {
max-width: 80px;
width: 80px;
}
Kind Regards
This is great. Thank you.
However, the source Gravatar image resolution is much higher on Gravatar https://gravatar.com/brilliantcreate and is very low resolution on the website https://staging.spasolution.co.uk/pricing/
Do you know if it is possible to manage the avatar image size/resolution?
Attachments:
You must be
logged in to view attached files.
Hello,
Paste the code below in the functions.php file in your child theme.
if ( ! function_exists( 'xts_change_avatar_size_data' ) ) {
function xts_change_avatar_size_data( $args, $id_or_email ) {
$args['size'] = 120;
$args['height'] = 120;
$args['width'] = 120;
$args['url'] = preg_replace( '/(\?|&)s=\d+/', '${1}s=120', $args['url'] );
return $args;
}
add_filter( 'get_avatar_data', 'xts_change_avatar_size_data', 10, 2 );
}
Then check how it works.
Kind Regards
yes, that’s much better. thank you
Hello,
In case you need any additional help, I’d be more than happy to assist you.
Have a good day!
Kind Regards
The topic ‘increase article author avatar size’ is closed to new replies.