Skip to content

Instantly share code, notes, and snippets.

@calliaweb
Last active March 30, 2018 12:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calliaweb/9ead108e21e663fb6c144a1322d04615 to your computer and use it in GitHub Desktop.
Save calliaweb/9ead108e21e663fb6c144a1322d04615 to your computer and use it in GitHub Desktop.
<?php
add_filter( 'genesis_comment_list_args', 'jmw_disable_genesis_comment_avatar' );
/**
* Disable comment avatars in Genesis.
* Set comment avatar size to 0 and use the default WordPress comment function instead of the Genesis one.
*
* @param array $args Comment args
* @return array Filtered comment args
*/
function jmw_disable_genesis_comment_avatar( $args ) {
$args['avatar_size'] = 0;
$args['callback'] ='';
return $args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment