Currently, my theme is customized to show a small author image below post title on every single posts on desktop as well as it’s mobile responsive version.
But when I tried to the same when “TD mobile theme” was ON. It didn’t appear. SO, I made similar changes to Mobile theme.
I edited single.php file under mobile folder of newspaper theme, and replaced :
<?php echo $td_mod_single->get_author();?>
with
<?php echo get_avatar(get_the_author_meta('ID', $post->post_author), 39) . $td_mod_single->get_author();?>
and then added this custom CSS code to mobile theme custom CSS setting:
.avatar-39{
float:left;width:39px;height:39px;border-radius:39px;margin:-12px 10px 5px 0;
}
The method exactly similar to what I did in case of desktop version.
But the result is this: https://i.snag.gy/XzT2YC.jpg
I am getting only top half of the author image. I tried some CSS tweaks but no successful. SO, I need your help to fix this.
Thank you.
-
This topic was modified 9 years by
Nano.
Hello nano2408,
Please try to use the following code and place it in Theme panel to fix it that problem in the mobile version. Please notice that the thumb was set it to be 17 as value and that’s why you do not bring the good results in this.
.avatar-39{
float:left;width:39px;height:39px;border-radius:39px;margin:0 10px 5px 0;
}
header .td-module-meta-info{
height: 40px!important;
}
Thanks for your message!
Hello yerbol89,
You should add a link to your avatar from where this is loaded, like this -> https://www.w3schools.com/html/html_images.asp It’s not a simple task and if you are not aware of the steps which are needed to take in this case, please consider hiring a freelancer/developer to help you because we can not provide custom work at the moment, sorry!
Thanks for the message!
Hi johnu101, unfortunately for mobile theme plugin there is no option to display the small author image, this can be add only with custom work or if you are using a responsive version with a cloud template.
Thank you!

