Skip to content

Instantly share code, notes, and snippets.

@KaineLabs
Last active April 20, 2019 16:15
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 KaineLabs/055c0883c278ee55360794072aa976a2 to your computer and use it in GitHub Desktop.
Save KaineLabs/055c0883c278ee55360794072aa976a2 to your computer and use it in GitHub Desktop.
Letters Avatar Plugin Fix.
<?php
/**
* Letters Avatar Plugin Fix.
*/
add_action( 'init', 'yzc_enable_gravatar' );
function yzc_enable_gravatar() {
remove_filter( 'bp_core_fetch_avatar_no_grav', 'yz_disable_gravatars' );
}
/**
Add this css to your site.
.youzer .sgi-letter-avatar {
border-radius: 100%;
}
.youzer .yz-profile-img .sgi-letter-avatar {
display: table-caption;
}
.yz-account-header .yz-account-img .sgi-letter-avatar,
.youzer .yz-group-img .sgi-letter-avatar,
.youzer .yz-profile-img .sgi-letter-avatar {
width: 100% !important;
height: 100% !important;
}
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment