开发者 | wilcosky |
---|---|
更新时间 | 2024年4月5日 20:42 |
PHP版本: | 4.6 及以上 |
WordPress版本: | 6.5 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
[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:
[ava id="1"]
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]'); ?>
/wp-content/plugins/ava
directory, or install the plugin through the WordPress plugins screen directly.With CSS.
Try this first: [ava class="whatever"]
Then, put the following code where your custom CSS is:
.whatever{border-radius:50%; width:50%;}
Now, if that does not work, I recommend wrapping the shortcode in a span tag with a class. For example: <span class="whatever">[ava]</span>
Either way, you need to know some CSS/HTML basics.