Disable Gravatars in WordPress
Disable Gravatars in WordPress
Disable Gravatars in WordPress
Avatars are meant to be controlled by the user, not by you. So yes, in a way, you’re being forced to use the Gravatar service. But remember, it gives the user the ability to use the same avatar anywhere, and you can always restrict the display of a gravatar based on content ratings (G, PG, … Read more
This http://www.violet-rain.com/wp-content/themes/artificer/images/VR-default-avatar.png produces 404. You probably meant artificer-child (working link) which would be in stylesheet (child theme) directory, not template (parent theme) directory.
Your issue is your foreach loop. Because you don’t manually setup postdata, the current post object is not available in global scope, that is why you cannot make use of template tags or anything else for that matter that relies on the post object. For get_the_author_meta() to work in your current situation, you will have … Read more
Setting the profile picture from another field
The following worked for me: <?php echo get_avatar( $comment, 60, ”, ”, $args = array( ‘scheme’ => ‘https’, ‘class’ => ‘myclass’ ) ); ?> Your use of $args[‘avatar_size’] should be an int and you may have confused the use of this parameter (unless you have a variable $args, and it is an array).
Change wordpress default avatar with custom plugin
Adding an Avatar to the Top Nav Bar
You just need to write a delete avatar function that gets the location of the file and deletes it using the php unlink function. The following code can be used as an example of how it’s done. I use this to delete the old user avatars when a user uploads a new one. It is … Read more
Yeah it is possible. Just add a function to the get_avatar hook function change_avatar($avatar, $id_or_email, $size, $default, $alt) { return ‘url_to_your_retro_image’; } add_filter(‘get_avatar’, ‘change_avatar’, 10, 5);