1
我在創建新gravatar時遵循wordpress codex。我看不到我的新的gravatar雖然我跟着指示:我無法在wordpress中看到我的孩子主題自定義gravatar
http://codex.wordpress.org/How_to_Use_Gravatars_in_WordPress
add_filter('avatar_defaults', 'new_default_avatar');
function new_default_avatar ($avatar_defaults) {
//Set the URL where the image file for your avatar is located
$new_avatar_url = get_bloginfo('template_directory') . '/images/new_default_avatar.png';
//Set the text that will appear to the right of your avatar in Settings>>Discussion
$avatar_defaults[$new_avatar_url] = 'Your New Default Avatar';
return $avatar_defaults;
}
使用檢查元素,化身目錄是:avatar_http://www.Domain.com/wp-content/themes /PARENT/images/gravatar.png
我不能得到的功能來讀取這樣說: avatar_http://www.Domain.com/wp-content/themes/CHILD/images/gravatar.png