• Chris_Moir

    (@chris_moir)


    So I am running the latest version of the Thesis theme on WordPress 3.5.1.
    I wanted to add a custom avatar for comments (for those with no gravatar) so I followed https://diythemes.com/thesis/rtfm/custom-default-comments-avatar/ on my site https://www.pdfelectronics.com

    My issue is that it seems from the article that the custom/images folder should have already existed. When I went into Filezilla it was not there so I created the folder/directory.

    When I go into my Dashboard on WordPress I can see that I added a new avatar but the picture does not load (yes I resized to 44×44).

    Any ideas why?

    Here is my custom_functions.php code

    if(!function_exists('custom_avatar')){
    function custom_avatar($avatar_defaults){
    $new_default_icon = get_bloginfo('template_directory') . '/custom/images/resized_avatar.jpg';
    $avatar_defaults[$new_default_icon] = 'Resistor (Default)';
    return $avatar_defaults;
    	}
    add_filter('avatar_defaults','custom_avatar');
    }

    Thanks!
    Chris

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

    (@chris_moir)

    Still stuck, tried various addressing methods for the picture inside the code.

Viewing 1 replies (of 1 total)
  • The topic ‘Issue Adding a Custom Default Avatar for Comments’ is closed to new replies.