<code id='7B32BB36AE'></code><style id='7B32BB36AE'></style>
    • <acronym id='7B32BB36AE'></acronym>
      <center id='7B32BB36AE'><center id='7B32BB36AE'><tfoot id='7B32BB36AE'></tfoot></center><abbr id='7B32BB36AE'><dir id='7B32BB36AE'><tfoot id='7B32BB36AE'></tfoot><noframes id='7B32BB36AE'>

    • <optgroup id='7B32BB36AE'><strike id='7B32BB36AE'><sup id='7B32BB36AE'></sup></strike><code id='7B32BB36AE'></code></optgroup>
        1. <b id='7B32BB36AE'><label id='7B32BB36AE'><select id='7B32BB36AE'><dt id='7B32BB36AE'><span id='7B32BB36AE'></span></dt></select></label></b><u id='7B32BB36AE'></u>
          <i id='7B32BB36AE'><strike id='7B32BB36AE'><tt id='7B32BB36AE'><pre id='7B32BB36AE'></pre></tt></strike></i>

          您现在的位置是:WordPress问鼎pg官方入口评论炸金花app下载免费单机版/金币版/苹果版头像无法显示 解决gravatar头像被屏蔽 >>正文

          WordPress问鼎pg官方入口评论炸金花app下载免费单机版/金币版/苹果版头像无法显示 解决gravatar头像被屏蔽

          蜂拥而来网6964人已围观

          简介从WordPress4.2开始,//评论头像gravatar显示function get_ssl_avatar($avatar) {$avatar = preg_replace('/.*\/...

          从WordPress4.2开始,

          //评论头像gravatar显示function get_ssl_avatar($avatar) add_filter('get_avatar', 'get_ssl_avatar');

          代码中的链接地址http://cn.gravatar.com/也可以换成https://secure.gravatar.com/。欢迎交流。把以下代码复制放到该文件中保存即可。
          WordPress评论头像无法显示 解决gravatar头像被屏蔽-图片2

          /*** 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评论头像无法显示 解决gravatar头像被屏蔽-图片1

          <img alt="" data-original="http://0.gravatar.com/avatar/30d39126ec95ba3b703696e17c7432ab?s=54&amp;d=http%3A%2F%2F127.0.0.1%2Fwp-content%2Fthemes%2FGit-master%2Fimg%2Fdefault.png&amp;r=g" srcset="http://0.gravatar.com/avatar/30d39126ec95ba3b703696e17c7432ab?s=108&amp;d=http%3A%2F%2F127.0.0.1%2Fwp-content%2Fthemes%2FGit-master%2Fimg%2Fdefault.png&amp;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头像不能显示的一个方法。在wordpres问鼎pg官方入口s主题-外观-编辑中,炸金花app下载免费单机版/金币版/苹果版

          安装wordpress主题后发现评论头像无法显示。打开functions.php文件,

          解决wordpress仪表盘头像错位

          另外,导致无法读取头像。这两个Gravatar头像地址都能访问。如下图:主要是width和height设置问题;将下面的代码添加到主题的functions.php保存即可解决gravatar头像撑破问题。因为wordpre炸金花app下载免费单问鼎pg官方入口机版/金币版/苹果版ss程序属于国外,仪表盘的“活动”小工具的头像有的会出现撑破现象,这导致国内有的Wordpress网站头像无法显示。国内屏蔽了Gravatar,1.gravatar.com等网址有时无法访问,

          Tags:

          相关文章

          

          友情链接