You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Article类型JSON-LD图片URL被谷歌判定无效,求修复方案

修复JSON-LD中Article图片URL无效的问题

问题原因

谷歌富结果测试工具要求Article类型的image字段必须使用ImageObject结构化对象,而非直接传递URL字符串数组。尽管Schema.org规范允许字符串格式,但谷歌为确保图片有效性与可索引性,强制要求使用包含必要属性的ImageObject格式。

修复方案

将原URL数组替换为ImageObject对象数组,每个对象需包含@type(固定值为ImageObject)、url、width和height属性。同时注意publisher的logo路径不能用本地磁盘路径,需改为HTTP/HTTPS格式的网站路径。

修复后的完整JSON-LD代码:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Article",
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "http://localhost/digitalclimbers/understand-laravel-with-features/"
  },
  "headline": "What Is Laravel",
  "image": [
    {
      "@type": "ImageObject",
      "url": "http://localhost/digitalclimbers/wp-content/uploads/2023/03/Untitled-design-4-min-300x300.jpg",
      "width": 300,
      "height": 300
    },
    {
      "@type": "ImageObject",
      "url": "http://localhost/digitalclimbers/wp-content/uploads/2023/03/Untitled-design-4-min-480x360.jpg",
      "width": 480,
      "height": 360
    },
    {
      "@type": "ImageObject",
      "url": "http://localhost/digitalclimbers/wp-content/uploads/2023/03/Untitled-design-4-min-1200x840.jpg",
      "width": 1200,
      "height": 840
    }
  ],
  "description": "Understand what is Laravel Framework, and its key features",
  "datePublished": "2023-03-29T21:29:59+05:30",
  "dateModified": "2024-01-26T09:43:41+05:30",
  "wordCount": 256,
  "about": ["Definition", "Laravel"],
  "articleSection": "Laravel",
  "inLanguage": "en-IN",
  "author": {
    "@type": "Person",
    "name": "Md Taufique Khan",
    "image": {
      "@type": "ImageObject",
      "url": "http://localhost/digitalclimbers/wp-content/uploads/2023/03/Untitled-design-5.jpg",
      "width": 150,
      "height": 150,
      "caption": "author alttag"
    },
    "url": "https://example.com/author/john-doe",
    "sameAs": [
      "https://lookmyweb.com",
      "https://google.com",
      "https://facebook.com"
    ]
  },
  "publisher": {
    "@type": "Organization",
    "name": "Digital Climber",
    "logo": {
      "@type": "ImageObject",
      "url": "http://localhost/digitalclimbers/wp-content/themes/tk/assets/Images/Logo/publisher-logo.webp",
      "width": 492,
      "height": 150,
      "caption": "Logo of Digital Climber - A Reliable Source for Learning Digital Marketing & Web Development"
    },
    "url": "http://localhost/digitalclimbers",
    "sameAs": [
      "link1",
      "link2",
      "link3"
    ]
  }
}
</script>

额外注意事项

  • 上线后需将本地localhost地址替换为真实域名,确保所有图片URL可公开访问。
  • 所有图片的width和height需与实际图片尺寸一致,不能随意填写。

内容的提问来源于stack exchange,提问作者DevWebTk

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.01 18:02:08