Skip to content

Instantly share code, notes, and snippets.

@wp-user-manager
Last active March 6, 2023 21:39
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
WPUM - Cover template for the profile which doesn't show the cover image but does show the avatar
<?php
/**
* The Template for displaying the profile cover.
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div>
<div id="header-avatar-container">
<a href="<?php echo esc_url( wpum_get_profile_url( $data->user ) ); ?>">
<?php echo get_avatar( $data->user->ID, 128 ); ?>
</a>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment