200字范文,内容丰富有趣,生活中的好帮手!
200字范文 > 如何在WordPress中为用户设置自定义头像(Gravatar替代)

如何在WordPress中为用户设置自定义头像(Gravatar替代)

时间:2023-08-11 12:22:23

相关推荐

如何在WordPress中为用户设置自定义头像(Gravatar替代)

Have you ever wanted to set custom avatars for users who leave comments with no Gravatar? Or want to get rid of gravatar altogether and speed up your page load time? In this article, we will show you a gravatar alternative that allows you to use the first letter in user’s name as their avatar for WordPress comments.

你有没有想过要设置自定义头像了谁留下任何意见的用户的Gravatar ? 还是要完全摆脱迷惑并加快页面加载时间? 在本文中,我们将向您展示Gravatar替代方案,该替代方案允许您使用用户名中的第一个字母作为WordPress注释的化身。

影片教学 (Video Tutorial)

演示地址

If you don’t like the video or need more instructions, then continue reading.

如果您不喜欢该视频或需要更多说明,请继续阅读。

First thing you need to do is install and activate the WP First Letter Avatar plugin. Upon activation, you need to visitSettings » WP First Letter Avatarto configure the plugin settings.

您需要做的第一件事是安装并激活WP First Letter Avatar插件。 激活后,您需要访问设置»WP First Letter Avatar来配置插件设置。

On the plugin’s settings page, you can choose a set of icons. Currently, it only comes with a default set of icons which is already selected.

在插件的设置页面上,您可以选择一组图标。 当前,它仅带有一组已选择的默认图标。

If you want to replace Gravatar on your site completely, then you need to uncheck ‘Use Gravatar’box. Once you are done, click the save changes button to store your settings.

如果您想完全替换网站上的Gravatar,则需要取消选中“使用Gravatar”框。 完成后,单击保存更改按钮以存储您的设置。

You can now visit your website to see this plugin in action.

现在,您可以访问您的网站以查看此插件的运行情况。

If you selected to use Gravatar, then it will only show first letter avatars for users who do not have a Gravatar image associated with their email address. If you chose to replace gravatar, then this plugin will show the first in user’s name as their avatar.

如果您选择使用Gravatar,那么对于没有与电子邮件地址相关联的Gravatar图像的用户,它将仅显示第一个字母的头像。 如果您选择替换Gravatar,则此插件将在用户名中显示第一个头像。

In the Gmail app, Google displays the first letter of sender’s name if the contact doesn’t have a photo, so this is a pretty clever way of following that trend.

在Gmail应用程序中,如果联系人没有照片,则Google将显示发件人姓名的首字母,因此这是一种顺应这种趋势的巧妙方法。

That’s all we hope this article helped you set custom avatars for users in WordPress as a Gravatar alternative.

这就是我们希望本文能帮助您为WordPress中的用户设置自定义头像作为Gravatar的替代方案。

You may also want to take a look at this tutorial on how to display author’s Gravatar on their posts in WordPress.

您可能还想看看本教程,了解如何在WordPress帖子中显示作者的Gravatar 。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Google+.

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在Twitter和Google+上找到我们。

翻译自: /plugins/how-to-set-custom-avatars-for-users-in-wordpress-gravatar-alternative/

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。