Skip to content

Instantly share code, notes, and snippets.

@willybahuaud
Created October 23, 2014 10: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 willybahuaud/a5f74c5bf075f888454d to your computer and use it in GitHub Desktop.
Save willybahuaud/a5f74c5bf075f888454d to your computer and use it in GitHub Desktop.
avatar espace membre
<?php
// a rajouter ligne 420
echo '<div class="wem-avatar">' . get_avatar( $userdata->user_email, 100, get_option( 'avatar_default' ), $userdata->display_name ) . '<p class="wem-modif-avatar">' . sprintf( __( 'Utilisez <a href="%s" target="_blank">le service Gravatar</a> pour personnaliser votre image de profil.', 'wem' ), 'https://fr.gravatar.com/' ) . '</p></div>';
// CSS à rajouter
/*
.wem-avatar{
padding-bottom:1em;
overflow:hidden;
}
.wem-avatar .avatar{
display:block;
width:177px;
height:177px;
margin-right:1em;
float:left;
-webkit-box-shadow: 0 5px 10px -5px #000;
box-shadow: 0 5px 10px -5px #000;
border:0;
border-radius:0;
}
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment