It only takes a minute to sign up. Connect and share knowledge within a single location that is structured and easy to search. It shows a small image before the author's name, I wanted to change the fa fa-user into author's avatar or buddypress avatar. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Function Reference/get avatar
WordPress has built-in support for Gravatars, globally recognized avatars. This means if you go to Gravatar. But some people might not want to use Gravatar. The Genesis theme has a great feature called the Author Box. Make sure your users upload a square photo or else it will be squished and that is at least as large as the largest use in the site. WordPress Development. Bill Erickson is a freelance WordPress developer and a contributing developer to the Genesis framework. For the past 14 years he has worked with attorneys , publishers , corporations , and non-profits , building custom websites tailored to their needs and goals. Set the default content, limit which blocks can be used, and more.
While the functionality is not built into WordPress version 3. Refer to the screenshots below to see the results. Hi there, your code worked on my site, but how do I get it to display on older posts please? It only displays on the current post. I suggest looking into the WordPress reference or contacting our live support for additional assistance. They will be able to take a closer look and assist with a solution. As I understand, Gravatars are by default square. You maybe able to find a plugin that allows you to customize the Gravatar shape. The direct reference for doing this can be found in the offical WordPress Codex on this page.
Are you looking for a way to display currently logged in users avatar in your theme? If you liked this code snippet, please consider checking out our other articles on the site like: 28 best WordPress business themes for your website and how to create a custom user registration form in WordPress. I want to implement your code snippet into my wordpress — buddypress. All users should be able to login via a button, which shows the avatar after login. I am familiar with css and very little to html. How can one Output the code in a shortcode please… I want display it in a colomn on the frontend. Kevin one more thing is that even after logged-out default image is seen instead of no image is there any solution by the way iam using in navigation can that be made to work also as drop down menu. Believe me i have searched high and low for posts on this and cannot find anywhere eon entire internet. The following will get all the values from the current user then you just have to write some HTML, CSS to display things the way you would like e.