Skip to content

Instantly share code, notes, and snippets.

@wp-user-manager
Last active March 6, 2023 21:39
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 wp-user-manager/2a5decaaa9c4889f80550831c6b56f1e to your computer and use it in GitHub Desktop.
Save wp-user-manager/2a5decaaa9c4889f80550831c6b56f1e to your computer and use it in GitHub Desktop.
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