WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Avatars in sidebar with Recent Comments (8 posts)

  1. inworship
    Member
    Posted 6 years ago #

    Can anybody suggest a good tutorial on making this happen? My theme isn't set up for it and I would love to make this happen.

    brentinworship.com/blog

  2. atanone
    Member
    Posted 6 years ago #

    I just visited your site, and I saw you already have some gravatars there. What tutorial do you actually need? Sadish's free themes such as Mistylook that I used in my site already have gravatar in sidebar. I wrote my experience setting up gravatar using Sadish Mistylook theme at this posting. At least it gives my visitors the link to gravatar site. I came across this one, Is your avatar a gravatar? through the links on gravatar site.

  3. inworship
    Member
    Posted 6 years ago #

    Well, I kept hunting and hunting and eventually found the get recent comments plug in. I installed that code and then tweaked it and I ma good to go now. Thanks!

  4. eladear
    Member
    Posted 5 years ago #

    If you are using Lester Chan's plugin. Use this

    <?php echo get_avatar('get_recent_comments','35','' ); ?> <?php get_recent_comments(); ?>
  5. eladear
    Member
    Posted 5 years ago #

    Here is the full of it, if you have added nothing to the sidebar.
    `<?php if (function_exists('get_recent_comments')) { ?>

  6. <h2><?php _e('Recent Comments'); ?></h2>

      <?php echo get_avatar('get_recent_comments','35','' ); ?> <?php get_recent_comments(); ?>
  7. <?php } ?>

  • eladear
    Member
    Posted 5 years ago #

    <?php if (function_exists('get_recent_comments')) { ?>
       <li>
    <h2><?php _e('Recent Comments'); ?></h2>
            <ul>
            <?php echo get_avatar('get_recent_comments','35','' ); ?> <?php get_recent_comments(); ?>
            </ul>
       </li>
    
       <?php } ?>
  • magcrossin
    Member
    Posted 5 years ago #

    What file is this supposed to be in, functions.php? I have added the code to comments.php and I have it showing on the page but not in my sidebar. What am I doing wrong? Any help would be greatly appreciated.

  • ChrisCree
    Member
    Posted 5 years ago #

    @magcrossin - You'll need to add it to your sidebar.php file to get it in your sidebar.

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags