Support » Plugins » Identicons not displayed in the template

  • Hi,

    I want to use Identicons avatars for comments these avatars appeared correctly in the admin area but in the frontend I see Gravatar logo instead. How come?

    I have tried with default template also and same issue.

    My website is still in production (local) not online.

    Do I need to add code lines in template to make it work?

    Sorry about this but I can find the way to make it work…

    Thanks

Viewing 1 replies (of 1 total)
  • Thread Starter lenamtl

    (@lenamtl)

    Hi,

    Ok I have fixed it

    I have replaced
    <?php echo get_avatar($comment,$size='48',$default='<path_to_url>' ); ?>

    by

    <?php
    
    if (function_exists('get_avatar')) {
    
    // Code pour version 2.5 ou sup
    
    echo get_avatar( get_comment_author_email(), '48');
    
    } else {
    
    // Code pour version 2.3 ou inf: Necessite le plugin MBLA
    
    if (function_exists('MyAvatarsNew')) MyAvatarsNew();
    
    }
    
    ?>

    This code was located into function.php of Simplev template.

Viewing 1 replies (of 1 total)
  • The topic ‘Identicons not displayed in the template’ is closed to new replies.