WordPress.org

Ready to get started?Download WordPress

Forums

Issue Adding a Custom Default Avatar for Comments (2 posts)

  1. Chris_Moir
    Member
    Posted 1 year ago #

    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 http://diythemes.com/thesis/rtfm/custom-default-comments-avatar/ on my site http://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 44x44).

    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

  2. Chris_Moir
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.