wordpress头像被墙
Ever come across a site that has custom shapes for their user avatars or gravatars? Want to add the same style on your site? In the past, we have written about how to add round avatars using CSS, but that requires tweaking code. In this article, we will show you how to change the shape of user avatars in WordPress without any HTML or CSS.
是否曾经遇到过针对其用户化身或gravatars具有自定义形状的网站? 是否要在您的网站上添加相同的样式? 过去,我们写过关于如何使用CSS添加圆形头像的文章 ,但这需要调整代码。 在本文中,我们将向您展示如何在没有任何HTML或CSS的情况下更改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 Avatar Shaper plugin.
您需要做的第一件事是安装并激活Avatar Shaper插件。
Once you have activated the plugin, you need to go to Settings » Avatar Shaper to configure the settings.
激活插件后,需要转到设置»Avatar Shaper来配置设置。
The plugin comes with 10 built in shapes that you can use for your gravatar images. You can see a live preview of each shape by clicking on the select shape button.
该插件带有10种内置形状,可用于制作图像。 通过单击选择形状按钮,您可以查看每个形状的实时预览。
Avatar shaper comes with the following shapes: curved square, circle, pentagon, hexagon, nonagon, heptagon, diamond, burst, and heart shaped avatars.
阿凡达塑形器具有以下形状:弯曲的正方形,圆形,五边形,六边形,九边形,七边形,菱形,爆发形和心形化身。
You can customize the styles by changing the radius settings, adding or removing shadow, modifying the shadow color, and removing the gloss optin from each of these pre-defined shapes.
您可以通过更改半径设置,添加或删除阴影,修改阴影颜色以及从每个这些预定义形状中删除光泽选项来自定义样式。
In case you don’t want to use any of these, then you can always click on Custom and create your own custom shape. When creating a custom shape, you can adjust border radius to your own liking.
如果您不想使用其中任何一种,则可以始终单击“ 自定义”并创建自己的自定义形状。 创建自定义形状时,可以根据自己的喜好调整边框半径。
If you are an advanced user and want to manually add modified avatars, then you can check the custom method checkbox. By using the custom method, it allows you to manually add avatar_shaper()
template tag in your theme where you want to display customized avatars. Beginners can safely ignore this setting.
如果您是高级用户,并且想要手动添加修改的头像,则可以选中自定义方法复选框。 通过使用自定义方法,它允许您在要显示自定义头像的主题中手动添加avatar_shaper()
模板标记。 初学者可以放心地忽略此设置。
Once you are done choosing the shape for your avatars, you can press the save changes button to store your settings.
完成为化身选择形状后,可以按保存更改按钮来存储您的设置。
That’s all. You can now visit your website and see the avatar shapes in action.
就这样。 现在,您可以访问您的网站,并查看虚拟形象的形状。
We hope this article helped you change the shape of user avatars in WordPress. You may also want to check out this tutorial on how to add new default avatars in WordPress.
我们希望本文能帮助您更改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 Google+.
如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在Twitter和Google+上找到我们。
翻译自: https://www.wpbeginner.com/plugins/how-to-change-the-shape-of-user-avatars-in-wordpress/
wordpress头像被墙