Google+ 发布问题。代码段未正确显示
Google+ posting issue. Snippet not appearing correctly
出于某种原因,当我们尝试 post 一个 link 到我们的博客时,它不会显示实际的博客 post 标题或片段。它过去曾经这样做过,我附上了一个额外的屏幕截图。我们的网站 zamansky.com 似乎不包含我所知道的导致此问题的任何代码。任何帮助为什么会发生这种情况以及如何解决它,我们将不胜感激!
这里是 link 屏幕截图:
如果使用Google提供的structured data testing tool可以看到查到的数据是:
WebSite
url: http://www.zamansky.com/
name: Zamansky LLC
alternateName: Zamansky LLC
与代码段显示的内容相符。回顾您的网站源代码,您会发现:
<script type='application/ld+json'>
{
"@context":"http:\/\/schema.org",
"@type":"WebSite",
"url":"http:\/\/www.zamansky.com\/",
"name":"Zamansky LLC",
"alternateName":"Zamansky LLC"
}
</script>
这是数据工具正在查找的微数据。由于 Google+ 片段 prioritize schema.org data first 这就是正在使用的内容。您可以简单地确保 ld+json
属性设置为与 og
标签中的内容相匹配,您应该已全部设置好。
请注意,Google+ 分享预览中显示的详细信息可能会被缓存,可能不会立即显示最新更新。
出于某种原因,当我们尝试 post 一个 link 到我们的博客时,它不会显示实际的博客 post 标题或片段。它过去曾经这样做过,我附上了一个额外的屏幕截图。我们的网站 zamansky.com 似乎不包含我所知道的导致此问题的任何代码。任何帮助为什么会发生这种情况以及如何解决它,我们将不胜感激!
这里是 link 屏幕截图:
如果使用Google提供的structured data testing tool可以看到查到的数据是:
WebSite
url: http://www.zamansky.com/
name: Zamansky LLC
alternateName: Zamansky LLC
与代码段显示的内容相符。回顾您的网站源代码,您会发现:
<script type='application/ld+json'>
{
"@context":"http:\/\/schema.org",
"@type":"WebSite",
"url":"http:\/\/www.zamansky.com\/",
"name":"Zamansky LLC",
"alternateName":"Zamansky LLC"
}
</script>
这是数据工具正在查找的微数据。由于 Google+ 片段 prioritize schema.org data first 这就是正在使用的内容。您可以简单地确保 ld+json
属性设置为与 og
标签中的内容相匹配,您应该已全部设置好。
请注意,Google+ 分享预览中显示的详细信息可能会被缓存,可能不会立即显示最新更新。