WordPress Favicon没有显示在Google Chrome选项卡上 [英] WordPress Favicon not showing on Google Chrome tab

查看:141
本文介绍了WordPress Favicon没有显示在Google Chrome选项卡上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几周以来,我的网络杂志的收藏夹图标不再显示,而是在我的作品的浏览器中,而且也在我的个人PC上显示.

Since a few weeks, the favicon of my webzine is no longer displayed, and this on the browser of my work, but also on my personal PC.

我认为我没有更改配置.我试图重新上传它,但无济于事.

I do not think I have changed the configuration. I tried to re-upload it, to no avail.

https://www.yubigeek.com/

在Google Chrome开发者控制台中,favicon.ico(404)出错,但是在页面的源代码中,未调用此URL.

In the Google Chrome Developer Console, there is an error on favicon.ico (404) but in the source code of the page, this URL is not called.

但是,有两个标签链接带有rel ="icon"和图标图标的URL,如果单击链接,图像就在那里.

There are however two tag link with a rel = "icon" and the URL of the favicon, if I click on the links, the images are there.

推荐答案

这是由于div标记(如果页面的head部分错误地显示).这样的标记只能在body中.

This is due to a div markup which wrongly appears if the head section of your pages. Such markup should only be in the body.

更多详细信息

大多数浏览器在head中接受仅body的标记.但是Chrome具有特殊的行为.发生这种情况时,Chrome认为head部分已关闭.因此,以下head标记实际上被视为在body中.而且由于body ...

Most browsers accept body-only markups in head. But Chrome has a particular behavior. When this happens, Chrome considers the head section to be closed. Therefore, following head markups are actually considered to be in the body. And since favicon markups do not work when there are in body...

这就是为什么您的收藏夹图标在Chrome上无法运行但在Firefox上可以运行的原因.

This is why your favicon fails on Chrome but works on Firefox.

如何修复

您的前两个div在第153行附近,仍然在head中.提示一下,它们的ID是fb-rootfb-customerchat.那应该可以帮助您发现哪个插件正在执行此操作.

Your first two div are around line 153, still in the head. As a hint, their ids are fb-root and fb-customerchat. That should help you spot which plugin is doing this.

您至少现在应该禁用此插件吗?您的选择.

Should you disable this plugin, at least for now? Your choice.

您还应该将此问题报告给插件开发人员.您一定不是唯一受此问题影响的人.

You should also report this issue to the plugin developer. You must not be the only one impacted by this issue.

这篇关于WordPress Favicon没有显示在Google Chrome选项卡上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆