Appearance
User Avatar
Displays the current logged-in user's WordPress avatar (Gravatar). Useful for profile pages, navigation headers, and user dashboards.
Properties
| Property | Type | Default | Description |
|---|---|---|---|
| size | number | 64 | The avatar size in pixels (renders as a square image). |
Example
Display a small avatar in a navigation bar:
Size: 32Display a large avatar on a profile page:
Size: 128Tips
- The avatar is loaded from Gravatar based on the user's WordPress email address.
- If the user is not logged in, a default placeholder avatar is shown.
- Use the Design tab to add
border-radius: 50%for a circular avatar. - Pair with the User Field widget to show the user's name or email alongside the avatar.
- Common sizes: 32px (inline/nav), 64px (cards), 128px (profile pages).