After doing the test,( please do not ask me if I broke the test site, because I did), I went to my site.

I use WP Fan Zone Theme. Go to Dashboard, Appearance, Editor, function.php

and add the following code :

function replace_content($text)

{

$alt = get_the_author_meta( 'display_name' );

$text = str_replace('alt=\'\'', 'alt=\'Avatar for '.$alt.'\' title=\'Gravatar for '.$alt.'\'',$text);

return $text;

}

add_filter('get_avatar','replace_content');

Notice I added this code after the writing in function.php (look for this)

add_theme_support( 'html5', array(

'comment-form', 'comment-list', 'gallery', 'caption',

) );

Press Save after you add the code!




Join the Discussion
Write something…
Recent messages
DianneBee Premium Plus
My goodness this totally beyond my comprehension!
Reply
johnwnewman Premium
Thanks Dorina! :-)
Reply
dorina62 Premium
You welcome,John!
Reply
MPollock Premium
Great and thanks for sharing
Reply
Tezsie Premium
Thanks for sharing this, Dorina
Reply
dorina62 Premium
You welcome,Tezsie!
Reply
Loes Premium
An advanced training Dorina, Chapeau!
Reply
dorina62 Premium
Thanks,Loes!If it had not been your suggestion I would have been stuck!
Reply
Loes Premium
Very convenient, that you can play & wreck ;)
Reply
dorina62 Premium
Yes, indeed!I was thinking to use the clone thing, but this way is more convenient!WA was clever doing this!
Reply
Tezsie Premium
hahaha, so true Loes!
Reply
Top