WordPres真人在线体育投注s评论问鼎下载链接入口苹果怎么下载头像无法显示 解决gravatar头像被屏蔽
把以下代码复制放到该文件中保存即可。从WordPress4.2开始,
//评论头像gravatar显示function get_ssl_avatar($avatar) add_filter('get_avatar', 'get_ssl_avatar');
代码中的链接地址http://cn.gravatar.com/也可以换成https://secure.gravatar.com/。这两个Gravatar头像地址都能访问。在wordpress主题-外观-编辑中,
这里介绍解决wordpress头像不能显示的一个方法。打开functions.php文件,导致无真人在线体育投注>问鼎下载链接入口苹果怎么下载法读取头像。如下图头像显示
<img alt="" data-original="http://0.gravatar.com/avatar/30d39126ec95ba3b703696e17c7432ab?s=54&d=http%3A%2F%2F127.0.0.1%2Fwp-content%2Fthemes%2FGit-master%2Fimg%2Fdefault.png&r=g" srcset="http://0.gravatar.com/avatar/30d39126ec95ba3b703696e17c7432ab?s=108&d=http%3A%2F%2F127.0.0.1%2Fwp-content%2Fthemes%2FGit-master%2Fimg%2Fdefault.png&r=g 2x" class="avatar avatar-54 photo" height="54" width="54" src="http://127.0.0.1/wp-content/themes/Git-master/img/default.png">
可以看出0.gravatar.com,
安装wordpress主题后发现评论头像无法显示。国内屏蔽了Gravatar,欢迎交流。
如下图:主要是width和height设置问题;将下面的代码添加到主题的functions.php保存即可解决gravatar头像撑破问题。仪表盘的“
/*** 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头像打不开解决方法,
解决wordpress仪表盘头像错位
另外,因为wordpress程序属于国外,
-
上一篇
-
下一篇
- 最近发表
- 随机阅读
-
- dedecms文章栏目列表页标题增加序号
- 个人网站/公司logo标志免费在线制作
- css中position属性定位:absolute与relative
- SEO一些名词介绍/SEO常见术语
- Microsoft office2007免费版下载
- WordPress二次元动漫图片主题MX3.14
- javascript数据类型
- 阿里云虚拟主机SSL证书部署(https配置)
- 帝国CMS列表页分页标题设置页码
- 个人博客网站日志404状态码分析
- 个人域名IPC备案/网站备案注意事项
- dedecms文章栏目列表页标题增加序号
- 个人网站程序语言HTML/ASP/PHP解析
- 阿里云虚拟主机SSL证书部署(https配置)
- wordpress如何防止垃圾评论/回复
- 传统企业SEO如何关键词精准定位
- 影响爬虫抓取网页的因素
- 织梦dedecms tag伪静态提示信息,系统无此tag
- 搜索引擎的工作原理(三)
- 个人网站有赞云支付接口申请方法
- 搜索
-
- 友情链接
-