title: WordPress: Custom default avatar on localhost?
body: <p>I'm trying to add a custom default avatar to WordPress in functions.php, but the image is not displaying in Settings/Discussion or elsewhere on the site. The code works because a new radio field is added with the custom field name, but the image won't display. Is the avatar not displaying because I'm using Localhost? </p>
  
  <p>I don't have enough reps to comment on similar questions.</p>
  
  <p>here's the code:</p>
  
  <pre><code>add_filter( 'avatar_defaults' , 'wps_new_avatar' );
  function wps_new_avatar( $avatar_defaults ){
      $new_avatar = get_stylesheet_directory_uri() . '/images/default-avatar.png';
      $avatar_defaults[$new_avatar] = "Default Avatar";
      return $avatar_defaults;
  }
  </code></pre>
  
  <p>I've tried other examples and the 'Add-New-Default-Avatar' plugin with the same result.</p>