How can I add a user login Avatar to the menu?


#1

Hi Guys im hoping someone could help me,

Ive been trying to add a user login avatar with notifications counter to the nav menu, with drop down for other options.

could someone help me ?


#3

What have you tried?
Where are the images stored?
Do you have code to post?


#4

Ive tried adding this to the functions.

if ( 1 == $depth )
	$avatar_size = 80;
else
	$avatar_size = 50;
?>


<li <?php comment_class(); ?> id="comment-<?php echo $counter; ?>">
<div class="comment-body" id="comment-body-<?php echo $counter; ?>">

	<div class="comment-avatar-box">
		<div class="avb">
			<a href="<?php echo get_comment_author_url(); ?>" rel="nofollow">
				<?php if ( $comment->user_id ) : ?>
					<?php echo get_avatar( $comment, 80 ); ?>
				<?php else : ?>
					<?php echo get_avatar( $comment, $avatar_size ); ?>
				<?php endif; ?>
			</a>
		</div>
	</div>

#5

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.