Last active
April 20, 2019 16:15
-
-
Save KaineLabs/055c0883c278ee55360794072aa976a2 to your computer and use it in GitHub Desktop.
Letters Avatar Plugin Fix.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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