• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.3 Hide avatars for users without one


XenForo moderator
Staff member
You could try using a conditional statement in the template:

<xen:if is="!{$visitor.avatar_date} AND !{$visitor.gravatar}">
Content to remove here


Active member
Ah, silly me. Visitor isn't what I want in this case. Changed it to:

<xen:if is="{$user.avatar_date} OR {$visitor.gravatar}">
Hides the avatars in posts for users who don't have one. My initial post may not have been totally clear on the behaviour I wanted