WordPrespc28官网在线s评论赏金游app官网下载头像无法显示 解决gravatar头像被屏蔽
时间:2025-06-24 02:55:50 阅读(143)
安装wordpress主题后发现评论头像无法显示。这导致国内有的Wordpress网站头像无法显示。
这里介绍解决wordpress头像不能显示的一个方法。
解决wordpress仪表盘头像错位
另外,
//评论头像gravatar显示function get_ssl_avatar($avatar) add_filter('get_avatar', 'get_ssl_avatar');
代码中的链接地址http://cn.gravatar.com/也可以换成https://secure.gravatar.com/。打开functions.php文件,
仪表盘的“活赏金游app官网下载动”小工具的头像有的会出现撑破现象,pc28官网在线
/*** WordPress 4.2 修复仪表盘头像错位* http://www.bokequ.com/310.html*/function fixed_activity_widget_avatar_style(){echo '<style type="text/css">#activity-widget #the-comment-list .avatar {position: absolute;top: 13px;width: 50px;height: 50px;}</style>';}add_action('admin_head', 'fixed_activity_widget_avatar_style' );
以上就是wordpress的评论头像 Gravatar头像打不开解决方法,这两个Gravatar头像地址都能访问。1.gravatar.com等网址有时无法访问,欢迎交流。把以下代码复制放到该文件中保存即可。因为wordpress程序属于国外,如下图头像显示
可以看出0.gravatar.com,国内屏蔽了Gravatar,导致无法读取头像。在wordpress主题-外观-编辑中,如下图:主要是width和height设置问题;将下面的代码添加到主题的functions.php保存即可解决gravatar头像撑破问题。从WordPress4.2开始,
分享到:
温馨提示:以上内容和图片整理于网络,仅供参考,希望对您有帮助!如有侵权行为请联系删除!