• Resolved lalindyannecom

    (@lalindyannecom)


    Is there a way to easily display the author gravatar or photo on all posts?
    I have multiple users submitting posts and I’d like to display their photo next to their name in the meta-data line.
    I would like this to appear with excerpts on a featured posts page also.
    I have created an author bio-box for now, but that is not ideal & only displays on single posts.
    Many thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • @lalindyannecom

    If you can code on your own then you can achieve it via the child theme.

    Thanks.

    Thread Starter lalindyannecom

    (@lalindyannecom)

    What should I put in my child theme functions.php in order to override theme’s default display?
    I want to replace the little icon next to the name if that’s possible.
    I have tried installing a plugin called Simple Local Avatars but nothing displays despite enabling the option to show Gravatars in settings.
    Many thanks.

    @lalindyannecom

    Please modify this function: spacious_entry_meta() as needed for your site via the child theme. And this function reside in the inc/functions.php file of the theme. You need to modify:
    <span class="by-author author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><?php the_author(); ?></a></span>
    code as needed for your site for resolving this issue.

    Thanks.

    Thread Starter lalindyannecom

    (@lalindyannecom)

    I can’t thank you enough. Displaying perfectly now.

    @lalindyannecom

    Glad to hear that your issue has been resolved. Do let us know if you have any further queries regarding the theme.

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Display Author Avatar-Photo on posts’ is closed to new replies.