Alphabet Avatars
Display attractive letter-based avatars for users without profile pictures. Each user gets their initials on a colorful background, making your site look more polished and helping users identify each other quickly.
Use Cases
- Replace the boring “mystery person” default avatar with something visually appealing
- Help users quickly identify commenters by their unique avatar colors
- Create a cohesive visual style across comment sections and user lists
- Avoid external Gravatar requests while still having attractive avatars
How It Works
- Module intercepts WordPress avatar requests
- Extracts user initials based on your settings (first+last name, username, etc.)
- Generates a unique background color for each user
- Creates an SVG avatar with initials on the colored background
- Displays the avatar anywhere WordPress shows user images
Where to Find It
Alphabet avatars appear automatically wherever WordPress displays user avatars:
- Comment sections on the frontend
- Author boxes in posts
- User lists in the admin area
- Admin bar profile area
Settings
| Setting | Options | Default | Description |
|---|---|---|---|
| Letter Source | First + Last Name, Username, Display Name | First + Last Name | How to generate the initials |
| Background Color | Random or Custom | Random | Unique color per user or same for all |
| Custom Color | Color picker | #3498db | The color to use when “Custom” is selected |
| Avatar Shape | Circle, Rounded Square | Circle | The shape of the avatar |
| Avatar Size | Small, Regular | Regular | Compact or standard letter sizing |
Letter Source Options
- First + Last Name Initials - Uses first letter of first name + first letter of last name (e.g., “John Smith” → “JS”). Falls back to username if names aren’t set.
- Username - First 2 letters of the username (e.g., “johnsmith” → “JO”)
- Display Name - First 2 letters of the display name (e.g., “John Smith” → “JO”)
Color Modes
- Random Colors - Each user gets a unique color based on their user ID. Colors are consistent - the same user always gets the same color.
- Custom Color - All avatars use the same background color you choose. Great for brand consistency.
Preview
When you open the module settings, you’ll see a live preview showing your own avatar with the current settings. Changes appear after you save.
Styling
Alphabet avatars are generated as inline SVG data URIs, so they inherit size from whatever’s requesting them. The avatars include the CSS class avatar like standard WordPress avatars.
To style all avatars including alphabet avatars:
/* Add a subtle shadow */
.avatar {
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* Adjust size in specific contexts */
.comment-author .avatar {
width: 48px;
height: 48px;
}Color Palette
When using random colors, the module cycles through 25 carefully chosen colors that look great with white text:
- Teals and greens:
#1abc9c,#2ecc71,#16a085,#27ae60,#00b894 - Blues:
#3498db,#2980b9,#0984e3,#74b9ff - Purples:
#9b59b6,#8e44ad,#6c5ce7 - Warm colors:
#f1c40f,#e67e22,#e74c3c,#f39c12,#d35400,#c0392b,#e17055,#fdcb6e - Neutrals:
#34495e,#2c3e50,#95a5a6,#7f8c8d - Pink:
#fd79a8
Each user ID maps to a specific color based on their ID modulo 25. Colors are consistent — the same user always gets the same color.
FAQ
Does this replace Gravatars?
Yes, this module replaces WordPress default avatars (Gravatars) with letter-based avatars for all users. It generates avatars based on user initials instead of fetching from the Gravatar service.What if a user has no first or last name set?
The module falls back gracefully. If only first name exists, it uses the first 2 letters of that. If neither name is set, it falls back to the first 2 letters of the username.Can I customize the font?
The avatars use the system font stack (-apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif) for maximum compatibility. The font cannot be changed without modifying the module code.Do the colors work for accessibility?
Yes! All colors in the palette were chosen to have sufficient contrast with white text. The letters are displayed in white (#ffffff) with a semi-bold weight for readability.Will this slow down my site?
No. Avatars are generated as inline SVG data URIs - no external requests, no database queries per avatar. They’re actually faster than Gravatar since there’s no third-party server to contact.If you want a cohesive brand look, use the “Custom Color” option and pick your brand’s primary color. All avatars will match your site’s design.
Get access to all 147 modules with a single license