Ava is a minimal shortcode which allows you to easily display an avatar. All you need to do is type
[ava] into a WordPress post or page. Doing this will display the currently logged in user’s avatar.
To show a specific user, do this:
To change the size and add an alt attribute do this:
[ava size=”32″ alt=”me”] or
[ava id="1" size="32" alt="me"]
If you are comfortable editing your theme and with PHP you may also utilize this shortcode by using:
<?php echo do_shortcode('[ava]'); ?>
- Upload the plugin files to the
/wp-content/plugins/avadirectory, or install the plugin through the WordPress plugins screen directly.
- Activate the plugin through the ‘Plugins’ screen in WordPress.
- Place [ava] in a page.
- Use CSS to make it pretty.
How do I style the avatar?
Okay. Could you be a little more specific?
Try this first:
Then, put the following code where your custom CSS is:
Now, if that does not work, I recommend wrapping the shortcode in a span tag with a class. For example:
Either way, you need to know some CSS/HTML basics.
Contributors & Developers
“Ava The Shortcode” is open source software. The following people have contributed to this plugin.Contributors
- Tested with WordPress 6.2
- The release.