图像在AMP页面上不可见 [英] Images are not visible on AMP pages

查看:91
本文介绍了图像在AMP页面上不可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的主页上实现了AMP,但是一些图像不可见.

I have implemented AMP on my home page, but some images are not visible.

您可以在我们的网站上查看: https://www.hopohomes.com/

You can check on our website : https://www.hopohomes.com/

推荐答案

我认为您误解了AMP概念.AMP-HTML标签不是HTML标签的替代品. 您不能仅仅通过替换几个标签就可以将您的站点转换为AMP. 您的网站必须遵循amp html规范( https://www.ampproject.org/docs/reference/规范).

I think u misunderstood about AMP concept.AMP-HTML tags are not the HTML tags replacement. You cant just convert your site into an AMP just by replacing few tags. your site must follow amp html specification(https://www.ampproject.org/docs/reference/spec).

要进行测试,可以安装amp验证程序chrome扩展程序,或通过/#development = 1结束网站网址,然后查看控制台.

To test that, you can install amp validator chrome extension or by ending your site url by /#development=1 and look into your console.

这是它的工作方式, 谷歌爬虫将在移动搜索中搜索amp,如果找到并验证无误,则您的amp页面可能会通过链接(而不是您的主网页)显示在移动搜索的丰富搜索结果和手机的热门新闻中.到正常页面,但在开发时受到限制. https://developers.google.com/search/docs/guides/enhance-放大器

Here is how it works, google crawler will search for amp in mobile search, if it is found and validates without error then your amp page may show up via link(not your main Web page) in rich search result and top stories in mobile.It will be very fast compared to normal pages but restrictive while developing. https://developers.google.com/search/docs/guides/enhance-amp

如果您不希望为AMP和非AMP保留单独的页面(建议保留此页面),那么您需要在功能上做出妥协,而且, 截至目前,您有100多个错误需要修复,以便Google识别.

If you are not willing to keep separate pages for AMP and non AMP(which is recommended to keep),then you need to compromise on your functionalities and also, As of now you are having more than 100 errors which needs to be fixed in order for google to recognize.

这篇关于图像在AMP页面上不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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