Author Bio help

Posted in: Newspaper
Post count: 55

Hi,

I want this author image and name to come in this style http://www.screencast.com/t/mJziJyrNk

can you let me know what code i have to add ???

thanks
bharath

Post count: 9544

Probably need to edit the single post template you’re using and move that section from bottom of template to top and experiment with that. For circle image you’d need to add CSS to make a round mask.

If you don’t know how to do any of that you might have to hire a developer.

Tagdiv support back on Monday might give more specific answer.

Post count: 7909

Hi,

You will need to use a plugin for your avatar like WP User Avatar and add an image to your profile.
And in your post template add this code(here you can find more info – https://codex.wordpress.org/Function_Reference/get_avatar) to display avatar next to Author: http://screencast.com/t/N0WFxDIPYN

get_avatar(get_the_author_meta( 'ID' ), 32 ) .

And use this custom css in Theme Panel to add radius: http://screencast.com/t/cMnzCUPotb

.single .meta-info .avatar {
border-radius: 100px;
}

Thanks!

Post count: 55

Hi,

Thanks @Chris i have got the solution for the author image


@Alin

It worked fine, but i have one issue, this avatar is general image for all the post, but i want to post avatar of my authors who post in our website, is it possible to get the avatar from the Gravatar.com to that position that i have mentioned or is there any alternative way to deal with this issue??

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

Regards
Bharath

Post count: 55

And also i want to this avatar to be visible on Small screen

Post count: 7909

Hi,

Every author can set an avatar from profile – http://screencast.com/t/epXydeKmLN
Also the avatar is visible on small screen: http://screencast.com/t/fyamPY5c6

Thanks!

Post count: 13

Speaking for those of us who are uncomfortable with code tweaking, what are the chances this option could be added to the next version of the theme?

  • This reply was modified 10 years by Tony Bear.
Post count: 7909

Hi Tony,

I have added your suggestion on our list, but the designers will take the final decision regarding this, so I cannot promise anything.

Thanks!

Post count: 40

Can you tell me how to make author pic in post in circle.

It would be nice with some shadow.

Regards
Siraj

Post count: 9544

Some info on how to do clips/masks – just follow the examples to experiment:
http://www.html5rocks.com/en/tutorials/masking/adobe/

Post count: 13

Thanks for the reply!

Post count: 40

Hi Alin,

Could you please share any css code which I can use to make the author pic in circle with shadow and small border.

Sorry Chris, I tried to follow what you said but I think i screwed something in middle 🙂

Regards
Siraj

Post count: 7909

Hi,

You can add border radius to the author image and also a shadow, for example – http://screencast.com/t/02GkiQq8mE2z

.td-module-meta-info .avatar {
border-radius: 100%;
-webkit-box-shadow: -1px 2px 7px 4px rgba(0,0,0,0.75);
-moz-box-shadow: -1px 2px 7px 4px rgba(0,0,0,0.75);
box-shadow: -1px 2px 7px 4px rgba(0,0,0,0.75);
}

Thanks!

Post count: 40

Thank you Alin.

I was asking about the Author PIC in POST. Not meta info Avatar. Will the same code works for even in Author Box.

Or shall I make changes at .author-box-wrap .avatar ?

Regards
Siraj

Post count: 7909

Hi,

Please try this custom css – http://screencast.com/t/iQ3vrHns

.author-box-wrap .avatar {
border-radius: 100%;
-webkit-box-shadow: -1px 2px 7px 4px rgba(0,0,0,0.75);
-moz-box-shadow: -1px 2px 7px 4px rgba(0,0,0,0.75);
box-shadow: -1px 2px 7px 4px rgba(0,0,0,0.75);
}

Thanks!

Post count: 40

Thank you very much

Post count: 40

If someone is reading this post and want to experiment with autor pic. You can also try following custom CSS code:

.author-box-wrap .avatar {
border-radius: 100%;
border: 5px solid #FFF;
-moz-box-shadow: 0 1px 3px 0 rgba(5,5,5,0.25);
-webkit-box-shadow: 0 1px 3px 0 rgba(5,5,5,0.25);
box-shadow: 0 1px 3px 0 rgba(5,5,5,0.25);
}

This will create a nice white border around your author.

NOTE: this will not change the pic styling in comments section, the above code is only for single post author pic.

Try and see.

If someone knows which section I need to add code to change the style of comments avatar, please do share

Regards
Siraj

Post count: 7909

Hi,

Try this code in for comment section – http://screencast.com/t/LfnDfryD

.comment .avatar {
border-radius: 100%;
border: 5px solid #FFF;
-moz-box-shadow: 0 1px 3px 0 rgba(5,5,5,0.25);
-webkit-box-shadow: 0 1px 3px 0 rgba(5,5,5,0.25);
box-shadow: 0 1px 3px 0 rgba(5,5,5,0.25);
}

Thanks!

Post count: 40

Thank you very much. First class support from you. Much appreciated.

Regards
Siraj

Post count: 14

How to do the same in Newspaper 7? anyone can tell me?

Post count: 22421

Him
This method should still work in newspaper 7. There is no reason for it not to. If it does not work for you, please follow each step again as you may have missed something.
Thank you!

Post count: 14

i’ve done this using “loop-single.php” and it’s working fine in desktop using this css and code

loop-single.php edit code :

<div class=”td-module-meta-info”>
<?php echo get_avatar(get_the_author_meta(’email’, $author_id), ’45’) . $td_mod_single->get_author();?>
<?php echo $td_mod_single->get_date(false);?>
<?php echo $td_mod_single->get_comments();?>
<?php echo $td_mod_single->get_views();?>
</div>

edit css :

” .avatar {
border-radius: 999px;
}

But when i add the same code in “/mobile/single.php” then

null

Please tell me css for mobile theme.

Post count: 22421

Hi,
I have not tested this on the mobile theme so the css most likely needs to be changed. Please provide a link to your site so i can create the css code directly by inspecting the element.
Thank you!

Post count: 14

Sorry I can’t Give Website name right now. Please tell me in other ways.

Post count: 23312

Hello Salyan,

You can send us an email at contact@tagdiv.com with your log-in information (wp-admin) so I can further inspect your problem. Please tell us again there which is your problem so we can know this.

Thanks.

Viewing 25 posts - 1 through 25 (of 25 total)
The forum ‘Newspaper’ is closed to new topics and replies.