Commit e907aa13 authored by John James Jacoby's avatar John James Jacoby
Browse files

Remove `avatar` class from directory avatars.

parent c76f8a2d
......@@ -318,3 +318,19 @@ function wp_user_directory_displayed_user_fullname() {
echo esc_html( $display_name );
}
/**
* Remove 'avatar' class from directory avatars
*
* This corrects a Semantic UI issue where .avatar results in tiny little images.
*
* @since 0.1.1
*
* @param array $classes
* @return array
*/
function wp_user_directory_filter_avatar_classes( $classes = array() ) {
unset( $classes['avatar'] );
return $classes;
}
......@@ -32,6 +32,9 @@ add_action( 'wp_footer', 'wp_user_directory_footer' );
// Theme Output
add_action( 'wp_user_directory_page', 'wp_user_directory_page' );
// WP User Avatars
add_filter( 'wp_user_avatars_avatar_classes', 'wp_user_directory_filter_avatar_classes' );
/**
* WordPress Footer Subaction
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment