如何在WordPress中添加作者的照片

Do you want to add an author’s photo in WordPress? By default, most WordPress themes display an author’s gravatar image as their profile photo. But what if you wanted to replace the gravatar image with an actual author photo? In this article, we will show you how to easily add an author’s photo in WordPress.

您要在WordPress中添加作者的照片吗? 默认情况下,大多数WordPress主题都会将作者的头像图像显示为个人资料照片。 但是,如果您想用实际的作者照片替换头像图像呢? 在本文中,我们将向您展示如何在WordPress中轻松添加作者的照片。

How to Add Author's Photo in WordPress
什么时候需要WordPress中的自定义作者照片? (When Do You Need Custom Author Photo in WordPress?)

If you run a single author WordPress site, then you can just use an image widget to add your photo and an about page with more information.

如果您运行单个作者WordPress网站,则可以使用图像小部件添加照片和带有更多信息的“关于”页面。

On the other hand, if you run a multi-author WordPress site, then you may need to add an author bio box at the end of your articles. Author bio box typically shows an author’s profile photo, brief bio, and links to their website or social profiles.

另一方面,如果您运行一个多作者WordPress网站 ,则可能需要在文章结尾处添加一个作者简介框 。 作者简介框通常会显示作者的个人资料照片,简介,以及指向其网站或社交资料的链接。

By default, most WordPress themes display an author’s gravatar image as their author photo. However, sometimes an author may not have a gravatar image or they may not want to use it as an author image on your website.

默认情况下,大多数WordPress主题显示作者的Gravatar图像作为其作者的照片。 但是,有时作者可能没有图形图像,或者他们可能不想在您的网站上将其用作作者图像。

Having said that, let’s see how to easily add author photo in WordPress and allow authors to upload a photo to their profile.

话虽如此,让我们看看如何在WordPress中轻松添加作者照片,并允许作者将照片上传到他们的个人资料。

影片教学 (Video Tutorial)

演示地址

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

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

在WordPress中添加作者照片 (Adding an Author Photo in WordPress)

First thing you need to do is install and activate the WP User Avatar plugin. For more details, see our step by step guide on how to install a WordPress plugin.

您需要做的第一件事是安装并激活WP User Avatar插件。 有关更多详细信息,请参阅有关如何安装WordPress插件的分步指南。

Upon activation, the plugin will add a new menu item labeled Avatars in your WordPress admin bar. Clicking on it will take you to the plugin’s settings page.

激活后,该插件将在您的WordPress管理栏中添加一个名为“化身”的新菜单项。 单击它会将您带到插件的设置页面。

WP User Avatar settings

Here you can choose how you want to display the user avatars on your WordPress website.

在这里,您可以选择如何在WordPress网站上显示用户头像。

By default, this plugin allows users with at least an Author role to upload their own profile photo. You can change that and allow contributors and subscribers as well.

默认情况下,此插件允许至少具有作者角色的用户上传自己的个人资料照片。 您可以更改它,并允许贡献者和订阅者。

It also allows you to completely disable Gravatar on your WordPress site and only use local avatars.

它还允许您完全禁用WordPress网站上的Gravatar,而仅使用本地头像。

Once you are comfortable with the settings, go ahead and click on save changes button to save them.

适应设置后,继续并单击保存更改按钮以保存它们。

Now you can go to Users page and click on the edit button below a username.

现在,您可以转到“ 用户”页面,然后单击用户名下方的编辑按钮。

On the edit user screen, scroll down to the bottom, and you will see the Avatar section. You can click on the ‘Choose Image’ button to upload the user photo.

在编辑用户屏幕上,向下滚动到底部,您将看到“头像”部分。 您可以点击“选择图片”按钮上传用户照片。

upload author photo

Don’t forget to click on the ‘Update profile’ button to save your changes.

不要忘记单击“更新配置文件”按钮来保存您的更改。

Similarly, users on your WordPress site will be able to upload their photos by editing their user profile.

同样,您的WordPress网站上的用户将可以通过编辑用户个人资料来上传照片。

User profile photo

Now you can visit your website to see the plugin in action.

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

It will start showing local avatar as author photo for the articles. If a user does not add an author photo, then it will show their gravatar image.

它将开始显示本地头像作为文章的作者照片。 如果用户未添加作者照片,则它将显示他们的头像图像。

Author photo with bio in WordPress

If a user doesn’t have an author photo or gravatar image, then it will fallback to the default gravatar image. You can add a branded custom gravatar image to be used as fallback image.

如果用户没有作者照片或头像图像,则它将回退到默认的头像图像。 您可以添加品牌的自定义图像作为后备图像。

We hope this article helped you learn how to add an author’s photo in WordPress. You may also want to see our guide on how to allow users to submit posts to your WordPress site.

我们希望本文能帮助您学习如何在WordPress中添加作者的照片。 您可能还想查看有关如何允许用户向您的WordPress网站提交帖子的指南。

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

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

翻译自: https://www.wpbeginner.com/plugins/how-to-add-an-authors-photo-in-wordpress/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值